Description
I'm getting this error in firebase crashlytics. I haven't been able to reproduce this myself though.
Caused by java.lang.NullPointerException: at com.dev.huutv.screenshot_detect_plugin_flutter.ScreenshotDetectionManager.stopScreenshotDetection(ScreenshotDetectionManager.java:9) at com.dev.huutv.screenshot_detect_plugin_flutter.ScreenshotDetectPluginFlutterPlugin.tearDown(ScreenshotDetectPluginFlutterPlugin.java:11) at com.dev.huutv.screenshot_detect_plugin_flutter.ScreenshotDetectPluginFlutterPlugin.onAttachedToActivity$lambda$0(ScreenshotDetectPluginFlutterPlugin.java:24) at androidx.lifecycle.LifecycleRegistry$ObserverWithState.dispatchEvent(LifecycleRegistry.java:24) at androidx.lifecycle.LifecycleRegistry.backwardPass(LifecycleRegistry.java:87) at androidx.lifecycle.LifecycleRegistry.sync(LifecycleRegistry.java:46) at androidx.lifecycle.LifecycleRegistry.moveToState(LifecycleRegistry.java:34) at androidx.lifecycle.LifecycleRegistry.handleLifecycleEvent(LifecycleRegistry.java:14) at androidx.lifecycle.ReportFragment$Companion.dispatch$lifecycle_runtime_release(ReportFragment.java:40) at androidx.lifecycle.ReportFragment$LifecycleCallbacks.onActivityPreStopped(ReportFragment.java:9) at android.app.Activity.dispatchActivityPreStopped(Activity.java:1567) at android.app.Activity.performStop(Activity.java:8784) at android.app.ActivityThread.callActivityOnStop(ActivityThread.java:5449) at android.app.ActivityThread.performStopActivityInner(ActivityThread.java:5429) at android.app.ActivityThread.handleStopActivity(ActivityThread.java:5494) at android.app.servertransaction.StopActivityItem.execute(StopActivityItem.java:43) at android.app.servertransaction.ActivityTransactionItem.execute(ActivityTransactionItem.java:45) at android.app.servertransaction.TransactionExecutor.executeLifecycleState(TransactionExecutor.java:176) at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:97) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2440) at android.os.Handler.dispatchMessage(Handler.java:106) at android.os.Looper.loopOnce(Looper.java:211) at android.os.Looper.loop(Looper.java:300) at android.app.ActivityThread.main(ActivityThread.java:8315) at java.lang.reflect.Method.invoke(Method.java) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:581) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1028)