AppLifecycleIntegration.removeObserver NullPointerException (observer is null)
Android
SDK:
"@sentry/react-native": "4",
"react-native": "0.72.4",
java.lang.NullPointerException: Parameter specified as non-null is null: method androidx.lifecycle.LifecycleRegistry.removeObserver, parameter observer
at androidx.lifecycle.LifecycleRegistry.removeObserver(Unknown Source:3)
at io.sentry.android.core.AppLifecycleIntegration.removeObserver(AppLifecycleIntegration.java:112)
at io.sentry.android.core.AppLifecycleIntegration.lambda$close$1$io-sentry-android-core-AppLifecycleIntegration(AppLifecycleIntegration.java:123)
at io.sentry.android.core.AppLifecycleIntegration$$ExternalSyntheticLambda0.run(Unknown Source:2)
at android.os.Handler.handleCallback(Handler.java:938)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loopOnce(Looper.java:201)
at android.os.Looper.loop(Looper.java:288)
at android.app.ActivityThread.main(ActivityThread.java:7870)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1003)
also have this log
Native Integrations '[io.sentry.UncaughtExceptionHandlerIntegration@714bce2, io.sentry.ShutdownHookIntegration@e2d7873]'
Hi @Qdafengzi, thank you for the message,
what version of @sentry/react-native@v4 are you using exactly?
If you are using SAGP, what version are you using?
Would you be able to provide steps to reproduce the issue or a minimal reproducible example?
Hi @Qdafengzi, thank you for the message,
what version of
@sentry/react-native@v4are you using exactly?If you are using SAGP, what version are you using?
Would you be able to provide steps to reproduce the issue or a minimal reproducible example?
Sorry for the late reply. I have been on vacation all along。
"@sentry/react-native": "^5.22.0" I have change this exactly version
android project classpath("io.sentry:sentry-android-gradle-plugin:4.5.0")
Maybe I need to observe and see if there is still this issue
@Qdafengzi No worries, thank you for the update.
This issue has gone three weeks without activity. In another week, I will close it.
But! If you comment or otherwise update it, I will reset the clock, and if you remove the label Waiting for: Community, I will leave it alone ... forever!
"A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀