icapps / flutter-background-location-tracker

Flutter background location tracker plugin. (Android / iOS)
MIT License
31 stars 37 forks source link

java.lang.RuntimeException #51

Closed Karuppasamy-M closed 1 year ago

Karuppasamy-M commented 1 year ago

Exception java.lang.RuntimeException: at android.app.ActivityThread.performDestroyActivity (ActivityThread.java:6093) at android.app.ActivityThread.handleDestroyActivity (ActivityThread.java:6126) at android.app.ActivityThread.handleRelaunchActivityInner (ActivityThread.java:6444) at android.app.ActivityThread.handleRelaunchActivity (ActivityThread.java:6342) at android.app.servertransaction.ActivityRelaunchItem.execute (ActivityRelaunchItem.java:71) at android.app.servertransaction.ActivityTransactionItem.execute (ActivityTransactionItem.java:45) at android.app.servertransaction.TransactionExecutor.executeCallbacks (TransactionExecutor.java:135) at android.app.servertransaction.TransactionExecutor.execute (TransactionExecutor.java:95) at android.app.ActivityThread$H.handleMessage (ActivityThread.java:2571) at android.os.Handler.dispatchMessage (Handler.java:106) at android.os.Looper.loopOnce (Looper.java:226) at android.os.Looper.loop (Looper.java:313) at android.app.ActivityThread.main (ActivityThread.java:8741) at java.lang.reflect.Method.invoke at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:571) at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1067) Caused by java.lang.NullPointerException: at com.lyokone.location.LocationPlugin.dispose (LocationPlugin.java) at com.lyokone.location.LocationPlugin.detachActivity (LocationPlugin.java) at com.lyokone.location.LocationPlugin.onDetachedFromActivityForConfigChanges (LocationPlugin.java) at io.flutter.embedding.engine.FlutterEngineConnectionRegistry.detachFromActivityForConfigChanges (FlutterEngineConnectionRegistry.java) at io.flutter.embedding.android.FlutterActivityAndFragmentDelegate.onDetach (FlutterActivityAndFragmentDelegate.java) at io.flutter.embedding.android.FlutterActivity.onDestroy (FlutterActivity.java) at android.app.Activity.performDestroy (Activity.java:8851) at android.app.Instrumentation.callActivityOnDestroy (Instrumentation.java:1419) at android.app.ActivityThread.performDestroyActivity (ActivityThread.java:6080)