Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2.x/3.x - NPE when debouncing empty source #6558

Closed
hluhovskyi opened this issue Jul 4, 2019 · 1 comment
Closed

2.x/3.x - NPE when debouncing empty source #6558

hluhovskyi opened this issue Jul 4, 2019 · 1 comment
Milestone

Comments

@hluhovskyi
Copy link
Contributor

Hey there!
I've faced with an issue when debouncing empty source it leads NPE. Here is simple test which demonstrates a problem:

@Test
public void debounceOnEmpty() {
    Observable.empty().debounce(new Function<Object, ObservableSource<Object>>() {
        @Override
        public ObservableSource<Object> apply(Object o) {
            return Observable.just(new Object());
        }
    }).subscribe();
}

Issue also touches Flowable in the same way. RxJava version is 2.2.7 however it is also reproducible for latest 3.x.

I am going to create PR with a fix soon for both of versions, let's keep this ticket to track a state of the issue.

@hluhovskyi hluhovskyi changed the title 2.x - NPE when debouncing empty source 2.x/3.x - NPE when debouncing empty source Jul 4, 2019
@akarnokd akarnokd added this to the 3.0 milestone Jul 4, 2019
@akarnokd
Copy link
Member

akarnokd commented Jul 5, 2019

Closing via #6559 & #6560.

@akarnokd akarnokd closed this as completed Jul 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants