bluelinelabs / Conductor

A small, yet full-featured framework that allows building View-based Android applications
Apache License 2.0
3.9k stars 343 forks source link

Crash on 3.0.0-rc2: Fatal Exception: java.lang.NullPointerException Attempt to read from field 'android.util.SparseArray i.c.a.n.a.m' on a null object reference #626

Closed ctarabusi closed 4 years ago

ctarabusi commented 4 years ago

We had a crash in the Conductor library 3.0.0-rc2

It happened on a Sony Xperia XZ2 with Android 10

Here is the complete stacktrace:

Fatal Exception: java.lang.NullPointerException
Attempt to read from field 'android.util.SparseArray i.c.a.n.a.m' on a null object reference
com.bluelinelabs.conductor.internal.LifecycleHandler.unregisterForActivityResults (LifecycleHandler.java:1)
com.bluelinelabs.conductor.ActivityHostedRouter.unregisterForActivityResults (ActivityHostedRouter.java:1)
com.bluelinelabs.conductor.Controller.destroy (Controller.java:9)
com.bluelinelabs.conductor.Controller.destroy (Controller.java:1)
com.bluelinelabs.conductor.Backstack.pop (Backstack.java:1)
com.bluelinelabs.conductor.Router.B (Router.java:19)
de.teufel.android.app.bluetooth.external.ui.MainActivity.pushBackController (MainActivity.java:11)

Do you have any recommendations? Is it maybe fixed in some recent 3.0.0-rcX versions?

Thanks in advance, Christian

EricKuck commented 4 years ago

It's hard to tell with the obfuscated stacktrace, but I think this is a duplicate of #567, which was fixed with #629