Hello, yesterday i got 7 crashes reports from firebase crashlitics.
now i'm running the plugin version 1.1.9, it's been a while since we updated plugins and published the app. but this is the first time we got this crash report.
Fatal Exception: java.lang.RuntimeException
Failure delivering result ResultInfo{who=@android:requestPermissions:, request=165, result=-1, data=Intent { act=android.content.pm.action.REQUEST_PERMISSIONS launchParam=MultiScreenLaunchParams { mDisplayId=0 mBaseDisplayId=0 mFlags=0 } (has extras) }} to activity {com.phonegap.kindoo/com.phonegap.kindoo.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void org.apache.cordova.CallbackContext.sendPluginResult(org.apache.cordova.PluginResult)' on a null object reference
Caused by java.lang.NullPointerException
Attempt to invoke virtual method 'void org.apache.cordova.CallbackContext.sendPluginResult(org.apache.cordova.PluginResult)' on a null object reference
com.megster.cordova.ble.central.BLECentralPlugin.onRequestPermissionResult
now clearly the user is denying permission for Coarse Location Access
i tried to replicate the scenario knowing where the user is denying the permission, but non of our test phones could replicate the scenario above, even when debugging the app using android studio there is no null object returned.
i can't figure out the problem, and the user sent already 3 emails about the crash.
Hello, yesterday i got 7 crashes reports from firebase crashlitics. now i'm running the plugin version 1.1.9, it's been a while since we updated plugins and published the app. but this is the first time we got this crash report.
Fatal Exception: java.lang.RuntimeException Failure delivering result ResultInfo{who=@android:requestPermissions:, request=165, result=-1, data=Intent { act=android.content.pm.action.REQUEST_PERMISSIONS launchParam=MultiScreenLaunchParams { mDisplayId=0 mBaseDisplayId=0 mFlags=0 } (has extras) }} to activity {com.phonegap.kindoo/com.phonegap.kindoo.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void org.apache.cordova.CallbackContext.sendPluginResult(org.apache.cordova.PluginResult)' on a null object reference
Caused by java.lang.NullPointerException Attempt to invoke virtual method 'void org.apache.cordova.CallbackContext.sendPluginResult(org.apache.cordova.PluginResult)' on a null object reference com.megster.cordova.ble.central.BLECentralPlugin.onRequestPermissionResult
now BLECentralPlugin.java:603 has this line
this.permissionCallback.sendPluginResult(new PluginResult(PluginResult.Status.ERROR, PERMISSION_DENIED_ERROR));
inside of method
now clearly the user is denying permission for Coarse Location Access
i tried to replicate the scenario knowing where the user is denying the permission, but non of our test phones could replicate the scenario above, even when debugging the app using android studio there is no null object returned. i can't figure out the problem, and the user sent already 3 emails about the crash.
that's the user data available: