logicwind / react-native-fold-detection

reacr-native library to detect fold device and also provide information related to fold status
MIT License
6 stars 1 forks source link

Crashes on Android #10

Closed FrancoTanzarellaEviivo closed 3 weeks ago

FrancoTanzarellaEviivo commented 3 weeks ago

I'm seeing this crash in play console

"react-native": "0.74.5",

Exception java.lang.NullPointerException: at com.folddetection.FoldDetectionModule.startListening (FoldDetectionModule.kt:28) at java.lang.reflect.Method.invoke at com.facebook.react.bridge.JavaMethodWrapper.invoke (JavaMethodWrapper.java:372) at com.facebook.react.bridge.JavaModuleWrapper.invoke (JavaModuleWrapper.java:146) at com.facebook.jni.NativeRunnable.run (NativeRunnable.java) at android.os.Handler.handleCallback (Handler.java:958) at android.os.Handler.dispatchMessage (Handler.java:99) at com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage (MessageQueueThreadHandler.java:27) at android.os.Looper.loopOnce (Looper.java:230) at android.os.Looper.loop (Looper.java:319) at com.facebook.react.bridge.queue.MessageQueueThreadImpl$4.run (MessageQueueThreadImpl.java:233) at java.lang.Thread.run (Thread.java:1012)

At the moment I'm not doing anything with the package but the context provider is wrapping my app.

FrancoTanzarellaEviivo commented 3 weeks ago

See fix in latest version