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 OperatorObserveOn RxJava 0.19 #1360

Closed
niqo01 opened this issue Jun 14, 2014 · 7 comments
Closed

NPE in OperatorObserveOn RxJava 0.19 #1360

niqo01 opened this issue Jun 14, 2014 · 7 comments
Labels

Comments

@niqo01
Copy link

niqo01 commented Jun 14, 2014

One of my production user got the following NullPointerException:
Environment:

  • rxjava-android: 0.19.0
  • Android: 4.4.2
  • Device: GT-I9505
java.lang.NullPointerException
       at rx.internal.operators.OperatorObserveOn$ObserveOnSubscriber.pollQueue(OperatorObserveOn.java:135)
       at rx.internal.operators.OperatorObserveOn$ObserveOnSubscriber.access$000(OperatorObserveOn.java:61)
       at rx.internal.operators.OperatorObserveOn$ObserveOnSubscriber$1.call(OperatorObserveOn.java:121)
       at rx.android.schedulers.HandlerThreadScheduler$InnerHandlerThreadScheduler$1.run(HandlerThreadScheduler.java:77)
       at android.os.Handler.handleCallback(Handler.java:733)
       at android.os.Handler.dispatchMessage(Handler.java:95)
       at android.os.Looper.loop(Looper.java:157)
       at android.app.ActivityThread.main(ActivityThread.java:5356)
       at java.lang.reflect.Method.invokeNative(Method.java)
       at java.lang.reflect.Method.invoke(Method.java:515)
       at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1265)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1081)
       at dalvik.system.NativeStart.main(NativeStart.java)
@niqo01
Copy link
Author

niqo01 commented Jun 14, 2014

I forgot the nice share Crashlytics feature: http://crashes.to/s/a5ab97ddcfc for complete details

@niqo01
Copy link
Author

niqo01 commented Jun 14, 2014

See #1354

@Bananeweizen
Copy link

You may want to comment on #1361, which should fix that issue.

@dpsm
Copy link
Contributor

dpsm commented Jul 9, 2014

@niqo01 this should be fixed since 0.19.2. Do you still have the issue? @benjchristensen keep an eye on this issue since we might want to close once we confirm the issue is fixed.

@benjchristensen
Copy link
Member

The observeOn operator is changed significantly in 0.20, so can anyone review and confirm whether this is still fixed in 0.20.0-RC3 or later?

@niqo01
Copy link
Author

niqo01 commented Jul 25, 2014

@dpsm I don't know how to reproduce myself, the only way I see is to deliver an update in production and wait and see our crash report tools. I ll update to 0.20, release and let you know if I see it again.

@benjchristensen
Copy link
Member

pollQueue in observeOn has a null check and based on #1361 and then work in 0.20 I think this is fixed. Please open a new ticket if the issue returned in 0.20 somehow.

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

4 participants