-
Notifications
You must be signed in to change notification settings - Fork 1.3k
NullPointerException com.mapbox.android.telemetry.TelemetryService.locationPermissionCheck #12904
Comments
Thanks for reporting the issue @nijs9. Would you be able to provide a list of devices you are seeing the crashes on? I have no issues with the Xperia Z1 running 5.1.1. /cc @andrlee @electrostat |
Hi @LucasPaczos. Here are some devices which crashes with this issue: Galaxy S4 (jfvelte) |
I've tested this as well on a 5.1 device with no issues while triggering the |
I got the same error, this is my logs: Device: Samsung Galaxy Note5 I'm using Mapbox Navigation, UI: 0.21.0 and it includes Mapbox Map ... Logs:
|
The crash is from this method, when |
fixed with mapbox/mapbox-events-android#241 |
@andrlee let's keep this one open unitl the telemetry version that includes a fix lands on |
Since upgrading to mapbox sdk 6.4.0, users with Android 4 or 5 are getting this exception:
java.lang.RuntimeException: at android.app.ActivityThread.handleCreateService (ActivityThread.java:2828) at android.app.ActivityThread.access$1800 (ActivityThread.java:166) at android.app.ActivityThread$H.handleMessage (ActivityThread.java:1365) at android.os.Handler.dispatchMessage (Handler.java:102) at android.os.Looper.loop (Looper.java:136) at android.app.ActivityThread.main (ActivityThread.java:5590) at java.lang.reflect.Method.invokeNative (Native Method) at java.lang.reflect.Method.invoke (Method.java:515) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:1268) at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1084) at dalvik.system.NativeStart.main (Native Method) Caused by: java.lang.NullPointerException: at android.support.v4.content.PermissionChecker.checkSelfPermission (PermissionChecker.java:134) at com.mapbox.android.telemetry.TelemetryService.locationPermissionCheck (TelemetryService.java:279) at com.mapbox.android.telemetry.TelemetryService.connectLocationEngine (TelemetryService.java:181) at com.mapbox.android.telemetry.TelemetryService.registerLocationReceiver (TelemetryService.java:171) at com.mapbox.android.telemetry.TelemetryService.createLocationReceiver (TelemetryService.java:167) at com.mapbox.android.telemetry.TelemetryService.onCreate (TelemetryService.java:47) at android.app.ActivityThread.handleCreateService (ActivityThread.java:2818)
Steps to reproduce
Expected behavior
Map is shown
Actual behavior
NullPointer Exception generated
Configuration
Android versions: 4 and 5
Device models:
Mapbox SDK versions: 6.4.0
The text was updated successfully, but these errors were encountered: