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

NPE in OnSubscribeFromIterable #1676

Closed
benjchristensen opened this issue Sep 8, 2014 · 2 comments
Closed

NPE in OnSubscribeFromIterable #1676

benjchristensen opened this issue Sep 8, 2014 · 2 comments
Labels
Milestone

Comments

@benjchristensen
Copy link
Member

A report from RxJava 0.19.x:

Caused by: java.lang.NullPointerException
        at rx.internal.operators.OnSubscribeFromIterable.call(OnSubscribeFromIterable.java:39)
        at rx.internal.operators.OnSubscribeFromIterable.call(OnSubscribeFromIterable.java:29)
        at rx.Observable$2.call(Observable.java:159)
@benjchristensen benjchristensen added this to the 1.0 milestone Oct 7, 2014
@zsxwing
Copy link
Member

zsxwing commented Oct 10, 2014

I feel a null Iterable is usually a programming error.I think throwing an NullPointerException in the constructor of OnSubscribeFromIterable is better. RxJava should not hide such error, so that people can find their mistake quickly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants