Closed TikTak123 closed 4 years ago
I'm guessing this one isn't easily reproducible?
I think so. I will try to explorer and reproduce this error. If I will get some results, I will notify you immediately.
Yeah, please let me know if you figure out some steps to reproduce. I've been banging my head against the wall on this one for quite a while and I'm getting nowhere. Thanks!
Log error without obfuscation code
Fatal Exception: java.lang.NullPointerException: Attempt to invoke virtual method 'java.util.List com.bluelinelabs.conductor.Controller.getChildRouters()' on a null object reference
at com.bluelinelabs.conductor.ControllerHostedRouter.getSiblingRouters(ControllerHostedRouter.java:240)
at com.bluelinelabs.conductor.Router.removeAllExceptVisibleAndUnowned(Router.java:882)
at com.bluelinelabs.conductor.Router.setBackstack(Router.java:409)
at com.bluelinelabs.conductor.ControllerHostedRouter.setBackstack(ControllerHostedRouter.java:108)
at com.bluelinelabs.conductor.Router.setRoot(Router.java:337)
at com.example.ui.main.MainMenuController.setController(MainMenuController.java:122)
at com.example.ui.main.MainMenuController.lambda$cEkOkfZd_WKnetSHdFPg2B6cdWY()
at com.example.ui.main.-$$Lambda$MainMenuController$cEkOkfZd_WKnetSHdFPg2B6cdWY.onSelect(:2)
at com.eightbitlab.bottomnavigationbar.BottomNavigationBar$3.onClick(BottomNavigationBar.java:199)
at android.view.View.performClick(View.java:6304)
at android.view.View$PerformClick.run(View.java:24803)
at android.os.Handler.handleCallback(Handler.java:794)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:176)
at android.app.ActivityThread.main(ActivityThread.java:6651)
at java.lang.reflect.Method.invoke(Method.java)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:547)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:824)
This should be fixed in the 3.0.0 release. Please feel free to reopen if you still have the issue after updating!
This crash did not occur in version 3.0 stable. But for the latest SNAPSHOT version it happens again. In latest version of my app I enabled minification and obfuscation code.
@TikTak123 it looks like there was an error uploading the snapshot, meaning you ended up testing a pre-3.0 build. I've pushed a new snapshot locally now and am looking into why CI silently errored out. Really sorry about that!
Conductor version: implementation 'com.bluelinelabs:conductor:3.0.0-rc2'
API level: Android 5, 6, 7, 8, 9, 10
Error log:
Sample code: