Fatal Exception: java.lang.NullPointerException: Attempt to invoke virtual method 'void com.mapbox.mapboxsdk.style.sources.GeoJsonSource.setGeoJson(com.mapbox.geojson.Feature)' on a null object reference
at com.mapbox.services.android.navigation.v5.navigation.NavigationMapRoute.updateArrowShaftWith(NavigationMapRoute.java:495)
at com.mapbox.services.android.navigation.v5.navigation.NavigationMapRoute.addUpcomingManeuverArrow(NavigationMapRoute.java:355)
at com.mapbox.services.android.navigation.v5.route.MapRouteProgressChangeListener.onProgressChange(MapRouteProgressChangeListener.java:26)
at com.mapbox.services.android.navigation.v5.navigation.NavigationEventDispatcher.onProgressChange(NavigationEventDispatcher.java:145)
at com.mapbox.services.android.navigation.v5.navigation.RouteProcessorThreadListener.onNewRouteProgress(RouteProcessorThreadListener.java:34)
at com.mapbox.services.android.navigation.v5.navigation.RouteProcessorHandlerCallback$1.run(RouteProcessorHandlerCallback.java:97)
at android.os.Handler.handleCallback(Handler.java:938)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:246)
at android.app.ActivityThread.main(ActivityThread.java:8633)
at java.lang.reflect.Method.invoke(Method.java)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:602)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1130)
this could accure when the source isn't loaded yet.
Fatal Exception: java.lang.NullPointerException: Attempt to invoke virtual method 'void com.mapbox.mapboxsdk.style.sources.GeoJsonSource.setGeoJson(com.mapbox.geojson.Feature)' on a null object reference at com.mapbox.services.android.navigation.v5.navigation.NavigationMapRoute.updateArrowShaftWith(NavigationMapRoute.java:495) at com.mapbox.services.android.navigation.v5.navigation.NavigationMapRoute.addUpcomingManeuverArrow(NavigationMapRoute.java:355) at com.mapbox.services.android.navigation.v5.route.MapRouteProgressChangeListener.onProgressChange(MapRouteProgressChangeListener.java:26) at com.mapbox.services.android.navigation.v5.navigation.NavigationEventDispatcher.onProgressChange(NavigationEventDispatcher.java:145) at com.mapbox.services.android.navigation.v5.navigation.RouteProcessorThreadListener.onNewRouteProgress(RouteProcessorThreadListener.java:34) at com.mapbox.services.android.navigation.v5.navigation.RouteProcessorHandlerCallback$1.run(RouteProcessorHandlerCallback.java:97) at android.os.Handler.handleCallback(Handler.java:938) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:246) at android.app.ActivityThread.main(ActivityThread.java:8633) at java.lang.reflect.Method.invoke(Method.java) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:602) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1130)
this could accure when the source isn't loaded yet.