Fatal Exception: java.lang.RuntimeException: Unable to destroy activity {de.bladenight.bladenight_app_flutter/de.bladenight.bladenight_app_flutter.MainActivity}: wj.s: lateinit property wifiManager has not been initialized
at android.app.ActivityThread.performDestroyActivity(ActivityThread.java:5901)
at android.app.ActivityThread.handleDestroyActivity(ActivityThread.java:5933)
at android.app.servertransaction.DestroyActivityItem.execute(DestroyActivityItem.java:47)
at android.app.servertransaction.ActivityTransactionItem.execute(ActivityTransactionItem.java:60)
at android.app.servertransaction.TransactionExecutor.executeLifecycleItem(TransactionExecutor.java:282)
at android.app.servertransaction.TransactionExecutor.executeTransactionItems(TransactionExecutor.java:150)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:93)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2595)
at android.os.Handler.dispatchMessage(Handler.java:107)
at android.os.Looper.loopOnce(Looper.java:232)
at android.os.Looper.loop(Looper.java:317)
at android.app.ActivityThread.main(ActivityThread.java:8592)
at java.lang.reflect.Method.invoke(Method.java)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:580)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:878)
Caused by wj.s: lateinit property wifiManager has not been initialized
at com.xenikii.nearby_service.NearbyServiceManager.disconnect(NearbyServiceManager.java:15)
at com.xenikii.nearby_service.NearbyServiceManager.disconnect$default(NearbyServiceManager.java:5)
at com.xenikii.nearby_service.NearbyServicePlugin.onDetachedFromEngine(NearbyServicePlugin.java:56)
at io.flutter.embedding.engine.FlutterEngineConnectionRegistry.remove(FlutterEngineConnectionRegistry.java:122)
at io.flutter.embedding.engine.FlutterEngineConnectionRegistry.remove(FlutterEngineConnectionRegistry.java:16)
at io.flutter.embedding.engine.FlutterEngineConnectionRegistry.removeAll(FlutterEngineConnectionRegistry.java:11)
at io.flutter.embedding.engine.FlutterEngineConnectionRegistry.destroy(FlutterEngineConnectionRegistry.java:10)
at io.flutter.embedding.engine.FlutterEngine.destroy(FlutterEngine.java:31)
at io.flutter.embedding.android.FlutterActivityAndFragmentDelegate.onDetach(FlutterActivityAndFragmentDelegate.java:105)
at io.flutter.embedding.android.FlutterActivity.onDestroy(FlutterActivity.java:18)
at android.app.Activity.performDestroy(Activity.java:9251)
at android.app.Instrumentation.callActivityOnDestroy(Instrumentation.java:1561)
at android.app.ActivityThread.performDestroyActivity(ActivityThread.java:5888)
at android.app.ActivityThread.handleDestroyActivity(ActivityThread.java:5933)
at android.app.servertransaction.DestroyActivityItem.execute(DestroyActivityItem.java:47)
at android.app.servertransaction.ActivityTransactionItem.execute(ActivityTransactionItem.java:60)
at android.app.servertransaction.TransactionExecutor.executeLifecycleItem(TransactionExecutor.java:282)
at android.app.servertransaction.TransactionExecutor.executeTransactionItems(TransactionExecutor.java:150)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:93)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2595)
at android.os.Handler.dispatchMessage(Handler.java:107)
at android.os.Looper.loopOnce(Looper.java:232)
at android.os.Looper.loop(Looper.java:317)
at android.app.ActivityThread.main(ActivityThread.java:8592)
at java.lang.reflect.Method.invoke(Method.java)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:580)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:878)