{"action":"created","issue":{"url":"https://api.github.com/repos/mapbox/mapbox-gl-native/issues/8999","repository_url":"https://api.github.com/repos/mapbox/mapbox-gl-native","labels_url":"https://api.github.com/repos/mapbox/mapbox-gl-native/issues/8999/labels{/name}","comments_url":"https://api.github.com/repos/mapbox/mapbox-gl-native/issues/8999/comments","events_url":"https://api.github.com/repos/mapbox/mapbox-gl-native/issues/8999/events","html_url":"https://github.com/mapbox/mapbox-gl-native/issues/8999","id":228663509,"number":8999,"title":"[Android] Mapzen crash - NullPointerException","user":{"login":"mpuchala","id":5737669,"avatar_url":"https://avatars1.githubusercontent.com/u/5737669?v=3","gravatar_id":"","url":"https://api.github.com/users/mpuchala","html_url":"https://github.com/mpuchala","followers_url":"https://api.github.com/users/mpuchala/followers","following_url":"https://api.github.com/users/mpuchala/following{/other_user}","gists_url":"https://api.github.com/users/mpuchala/gists{/gist_id}","starred_url":"https://api.github.com/users/mpuchala/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mpuchala/subscriptions","organizations_url":"https://api.github.com/users/mpuchala/orgs","repos_url":"https://api.github.com/users/mpuchala/repos","events_url":"https://api.github.com/users/mpuchala/events{/privacy}","received_events_url":"https://api.github.com/users/mpuchala/received_events","type":"User","site_admin":false},"labels":[{"id":143173729,"url":"https://api.github.com/repos/mapbox/mapbox-gl-native/labels/Android","name":"Android","color":"000000","default":false},{"id":173948013,"url":"https://api.github.com/repos/mapbox/mapbox-gl-native/labels/crash","name":"crash","color":"0052cc","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/mapbox/mapbox-gl-native/milestones/58","html_url":"https://github.com/mapbox/mapbox-gl-native/milestone/58","labels_url":"https://api.github.com/repos/mapbox/mapbox-gl-native/milestones/58/labels","id":2393886,"number":58,"title":"android-v5.1.0","description":"Mapbox Android SDK `v5.1.0`.","creator":{"login":"zugaldia","id":6964,"avatar_url":"https://avatars3.githubusercontent.com/u/6964?v=3","gravatar_id":"","url":"https://api.github.com/users/zugaldia","html_url":"https://github.com/zugaldia","followers_url":"https://api.github.com/users/zugaldia/followers","following_url":"https://api.github.com/users/zugaldia/following{/other_user}","gists_url":"https://api.github.com/users/zugaldia/gists{/gist_id}","starred_url":"https://api.github.com/users/zugaldia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zugaldia/subscriptions","organizations_url":"https://api.github.com/users/zugaldia/orgs","repos_url":"https://api.github.com/users/zugaldia/repos","events_url":"https://api.github.com/users/zugaldia/events{/privacy}","received_events_url":"https://api.github.com/users/zugaldia/received_events","type":"User","site_admin":false},"open_issues":12,"closed_issues":86,"state":"open","created_at":"2017-03-17T15:24:18Z","updated_at":"2017-05-16T11:26:23Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2017-05-15T09:56:18Z","updated_at":"2017-05-18T21:24:41Z","closed_at":null,"body":"<!--\r\nHello and thanks for contributing! To help us diagnose your problem quickly, please:\r\n\r\n - Include a minimal demonstration of the bug, including code, logs, and screenshots.\r\n - Ensure you can reproduce the bug using the latest release.\r\n - Only post to report a bug or request a feature; direct all other questions to: https://stackoverflow.com/questions/tagged/mapbox\r\n-->\r\n\r\n**Platform: Android 7.0**\r\n**Mapbox SDK version: 5.1.0-beta2**\r\n\r\n### Steps to trigger behavior\r\n\r\n 1. Create simple Map example\r\n 2. Set `My Location` enabled\r\n 3. Exit app\r\n\r\n### Actual behavior\r\nWhen using 5.1.0-beta.2 there is a crash on close. Even when I create example project and set:\r\n```\r\nmMapboxMap.getMyLocationViewSettings().setEnabled(true);\r\nmMapboxMap.setMyLocationEnabled(true);\r\n```\r\n\r\nAfter I close app I get a NullPointerException related to mapzen.\r\n```\r\njava.lang.NullPointerException: Attempt to invoke interface method 'com.mapzen.android.lost.api.LocationAvailability com.mapzen.android.lost.internal.IFusedLocationProviderService.getLocationAvailability()' on a null object reference\r\n                                                                            at com.mapzen.android.lost.internal.FusedLocationProviderApiImpl$1$1.run(FusedLocationProviderApiImpl.java:51)\r\n                                                                            at android.os.Handler.handleCallback(Handler.java:751)\r\n                                                                            at android.os.Handler.dispatchMessage(Handler.java:95)\r\n                                                                            at android.os.Looper.loop(Looper.java:154)\r\n                                                                            at android.app.ActivityThread.main(ActivityThread.java:6776)\r\n                                                                            at java.lang.reflect.Method.invoke(Native Method)\r\n                                                                            at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1520)\r\n                                                                            at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1410)\r\n```\r\n\r\nI haven't noticed it before (stable 5.0.2) now it's very common - sometimes it takes few seconds to get it. I'm not able to reproduce it when `MyLocation` is disabled.\r\n\r\nIf it's duplicated or known issue feel free to close, but I guess it's another blocker for stable 5.1.0 version."},"comment":{"url":"https://api.github.com/repos/mapbox/mapbox-gl-native/issues/comments/302546000","html_url":"https://github.com/mapbox/mapbox-gl-native/issues/8999#issuecomment-302546000","issue_url":"https://api.github.com/repos/mapbox/mapbox-gl-native/issues/8999","id":302546000,"user":{"login":"sarahlensing","id":494323,"avatar_url":"https://avatars1.githubusercontent.com/u/494323?v=3","gravatar_id":"","url":"https://api.github.com/users/sarahlensing","html_url":"https://github.com/sarahlensing","followers_url":"https://api.github.com/users/sarahlensing/followers","following_url":"https://api.github.com/users/sarahlensing/following{/other_user}","gists_url":"https://api.github.com/users/sarahlensing/gists{/gist_id}","starred_url":"https://api.github.com/users/sarahlensing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sarahlensing/subscriptions","organizations_url":"https://api.github.com/users/sarahlensing/orgs","repos_url":"https://api.github.com/users/sarahlensing/repos","events_url":"https://api.github.com/users/sarahlensing/events{/privacy}","received_events_url":"https://api.github.com/users/sarahlensing/received_events","type":"User","site_admin":false},"created_at":"2017-05-18T21:24:41Z","updated_at":"2017-05-18T21:24:41Z","body":"Thanks for creating an issue! We have merged a [fix](https://github.com/mapzen/lost/pull/200) for this. Please refresh your dependencies and rebuild."}}
{"actor":{"display_login":"sarahlensing"}}