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

NullPointerException at rx.exceptions.CompositeException.getListOfCauses(CompositeException.java:245) #3046

Closed
sgonchar opened this issue Jun 23, 2015 · 3 comments

Comments

@sgonchar
Copy link

I use RxAndroid library in my project and I have next exception :

E/AndroidRuntime(27849): Error reporting crash
E/AndroidRuntime(27849): java.lang.NullPointerException
E/AndroidRuntime(27849): at rx.exceptions.CompositeException.getListOfCauses(CompositeException.java:245)
E/AndroidRuntime(27849): at rx.exceptions.CompositeException.getCause(CompositeException.java:100)
E/AndroidRuntime(27849): at android.util.Log.getStackTraceString(Log.java:454)
E/AndroidRuntime(27849): at android.util.Slog.e(Slog.java:151)
E/AndroidRuntime(27849): at com.android.internal.os.RuntimeInit$UncaughtHandler.uncaughtException(RuntimeInit.java:109)
E/AndroidRuntime(27849): at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:693)
E/AndroidRuntime(27849): at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:690)
E/AndroidRuntime(27849): at rx.internal.schedulers.ScheduledAction.run(ScheduledAction.java:66)
E/AndroidRuntime(27849): at android.os.Handler.handleCallback(Handler.java:733)
E/AndroidRuntime(27849): at android.os.Handler.dispatchMessage(Handler.java:95)
E/AndroidRuntime(27849): at android.os.Looper.loop(Looper.java:146)
E/AndroidRuntime(27849): at android.app.ActivityThread.main(ActivityThread.java:5653)
E/AndroidRuntime(27849): at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime(27849): at java.lang.reflect.Method.invoke(Method.java:515)
E/AndroidRuntime(27849): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1291)
E/AndroidRuntime(27849): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1107)
E/AndroidRuntime(27849): at dalvik.system.NativeStart.main(Native Method)

Somebody know how can I fix it ?
Thank you

@akarnokd
Copy link
Member

It appears you have a null exception added to a composite somewhere. What operators are you using. Do you call onError(null) somewhere by accident?

@sgonchar
Copy link
Author

I try to get throwable.getMessage callback and have this null pointer.
I already find the reason. I make mistake at URL and try to connect to non-existent URL. I changed it and all is fine.
I think you need handle this null pointer in other way, because currently I can't normally find the reason of exception.
Thank you

@akarnokd
Copy link
Member

Fix already delivered. Thank you for reporting.

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