When I call NativeDeviceOrientationCommunicator().resume(), the following error occurs.
I tested on
Platform: Android 12
Plugin version: 1.1.4
PlatformException (PlatformException(error, Attempt to invoke virtual method 'java.lang.String com.github.rmtmckenzie.native_device_orientation.NativeOrientation.name()' on a null object reference, null, java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String com.github.rmtmckenzie.native_device_orientation.NativeOrientation.name()' on a null object reference
at com.github.rmtmckenzie.native_device_orientation.NativeDeviceOrientationPlugin$StreamHandler$1.receive(NativeDeviceOrientationPlugin.java:115)
at com.github.rmtmckenzie.native_device_orientation.SensorOrientationListener.startOrientationListener(SensorOrientationListener.java:45)
at com.github.rmtmckenzie.native_device_orientation.NativeDeviceOrientationPlugin$MethodCallHandler.onMethodCall(NativeDeviceOrientationPlugin.java:86)
at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(MethodChannel.java:262)
at io.flutter.embedding.engine.dart.DartMessenger.invokeHandler(DartMessenger.java:295)
at io.flutter.embedding.engine.dart.DartMessenger.lambda$dispatchMessageToQueue$0$DartMessenger(DartMessenger.java:319)
at io.flutter.embedding.engine.dart.-$$Lambda$DartMessenger$TsixYUB5E6FpKhMtCSQVHKE89gQ.run(Unknown Source:12)
at android.os.Handler.handleCallback(Handler.java:938)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loopOnce(Looper.java:226)
at android.os.Looper.loop(Looper.java:313)
at android.app.ActivityThread.main(ActivityThread.java:8669)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:571)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1135)
))
When I call
NativeDeviceOrientationCommunicator().resume(), the following error occurs.I tested on
Platform: Android 12
Plugin version: 1.1.4