Closed cesards closed 8 years ago
Actually is crashing as well in production:
03-14 12:14:04.162 18903-18903/xxx E/AndroidRuntime: FATAL EXCEPTION: main
java.lang.RuntimeException: Unable to resume activity {xxx/xxx.home.HomeActivity}: java.lang.NullPointerException
at android.app.ActivityThread.performResumeActivity(ActivityThread.java:2595)
at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:2623)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2100)
at android.app.ActivityThread.access$600(ActivityThread.java:137)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1206)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:213)
at android.app.ActivityThread.main(ActivityThread.java:4791)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:789)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:556)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.NullPointerException
at com.fernandocejas.frodo.aspect.LogObservable.methodAnnotatedWithRxLogObservable(LogObservable.java:27)
at xxx.home.HomeActivity.onChannelPageChanged(HomeActivity.java)
at xxx.home.HomePresenter.setupSubscriptions(HomePresenter.java:103)
at xxx.home.HomePresenter.onViewWillShow(HomePresenter.java:76)
at xxx.home.HomeActivity.onResume(HomeActivity.java:197)
at android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1184)
at android.app.Activity.performResume(Activity.java:5082)
at android.app.ActivityThread.performResumeActivity(ActivityThread.java:2585)
at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:2623)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2100)
at android.app.ActivityThread.access$600(ActivityThread.java:137)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1206)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:213)
at android.app.ActivityThread.main(ActivityThread.java:4791)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:789)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:556)
at dalvik.system.NativeStart.main(Native Method)
It is not this project responsibility to support 3rd party libraries like robolectric and if you have issues with it, please send a PR.
On the other hand, if it is crashing on your android app, can you post sample code so this can be reproduced and for instance evaluate whether is an issue and give it a priority?
Thanks!
Whenever I run my tests, the ones who use Frodo annotated methods get a NullPointerException. It looks like they don't get well with Robolectric. Do they?
The failing method is:
Do you need more info?