Conductor v2 (RC) NullPointerException
See original GitHub issueAfter using child Routers in my app I’m facing a strange behavior:
06-17 21:03:41.184 2717-2717/com.chaseapp.chaseapp E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.chaseapp.chaseapp, PID: 2717
java.lang.RuntimeException: Unable to destroy activity {com.chaseapp.chaseapp/com.chaseapp.chaseapp.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean android.app.Activity.isChangingConfigurations()' on a null object reference
at android.app.ActivityThread.performDestroyActivity(ActivityThread.java:3706)
at android.app.ActivityThread.handleDestroyActivity(ActivityThread.java:3724)
at android.app.ActivityThread.access$1400(ActivityThread.java:151)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1357)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5254)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698)
Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean android.app.Activity.isChangingConfigurations()' on a null object reference
at com.hannesdorfmann.mosby.mvp.conductor.delegate.MvpConductorLifecycleListener.preDestroyView(MvpConductorLifecycleListener.java:74)
at com.hannesdorfmann.mosby.conductor.viewstate.delegate.MvpViewStateConductorLifecycleListener.preDestroyView(MvpViewStateConductorLifecycleListener.java:44)
at com.bluelinelabs.conductor.Controller.removeViewReference(Controller.java:811)
at com.bluelinelabs.conductor.Controller.detach(Controller.java:800)
at com.bluelinelabs.conductor.Controller.destroy(Controller.java:916)
at com.bluelinelabs.conductor.Controller.activityDestroyed(Controller.java:750)
at com.bluelinelabs.conductor.Router.onActivityDestroyed(Router.java:414)
at com.bluelinelabs.conductor.ControllerHostedRouter.onActivityDestroyed(ControllerHostedRouter.java:68)
at com.bluelinelabs.conductor.Router.onActivityDestroyed(Router.java:417)
at com.bluelinelabs.conductor.ActivityHostedRouter.onActivityDestroyed(ActivityHostedRouter.java:40)
at com.bluelinelabs.conductor.internal.LifecycleHandler.destroyRouters(LifecycleHandler.java:158)
at com.bluelinelabs.conductor.internal.LifecycleHandler.onDestroy(LifecycleHandler.java:127)
at android.app.Fragment.performDestroy(Fragment.java:2266)
at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1017)
at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1067)
at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1049)
at android.app.FragmentManagerImpl.dispatchDestroy(FragmentManager.java:1897)
at android.app.Activity.performDestroy(Activity.java:6168)
at android.app.Instrumentation.callActivityOnDestroy(Instrumentation.java:1141)
at android.app.ActivityThread.performDestroyActivity(ActivityThread.java:3693)
at android.app.ActivityThread.handleDestroyActivity(ActivityThread.java:3724)
at android.app.ActivityThread.access$1400(ActivityThread.java:151)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1357)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5254)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698)
Using Conductor v2 RC3 and mosby-conductor 0.7
Issue Analytics
- State:
- Created 7 years ago
- Reactions:1
- Comments:18 (7 by maintainers)
Top Results From Across the Web
NullPointerException when starting up (using dynomite) #856
Using conductor version 2.1.0 (downloaded from https://bintray.com/netflixoss/maven/conductor/2.1.0) Configuration is as follows (all IPs ...
Read more >"java.lang.NullPointerException" while trying to select Rest V2 ...
The test connection works successfully, however, the error is seen only when trying to select an object in a mapping.
Read more >NullPointerException when executing select with Connect for ...
The driver was not checking for a null value when performing the comparison. Resolution. Fixed in hotfixes: JDBC : 6.0 ...
Read more >Java-dcp-client throw NullPointerException when SSL is ...
I try to use SSL between DCP client and couchbase server, with a minimum test client code. Got NPE in connection initialization.
Read more >Connector 2.0.0-M3 NullPointerException when creating ...
Hello all, when running the attached class (TestNPE) I have a NPE when reading from Cassandra: net.courtanet.devtools.db.spark.TestNPE
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Ok, I have found a temporarily workaround. I have published a new version
0.8.0
of this library, containing this temporarily workaround. However, this issue should be fixed in conductor.@sockeqwe, thanks for quick reply, I have updated conductor, problem is gone