Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NavigationViewEventDispatcher#onBannerDisplay NullPointerException #1189

Closed
Guardiola31337 opened this issue Aug 6, 2018 · 1 comment
Closed
Labels
bug Defect to be fixed.

Comments

@Guardiola31337
Copy link
Contributor

Run into the following 💥 while testing

java.lang.NullPointerException: Attempt to invoke virtual method 'com.mapbox.api.directions.v5.models.BannerInstructions com.mapbox.services.android.navigation.ui.v5.NavigationViewEventDispatcher.onBannerDisplay(com.mapbox.api.directions.v5.models.BannerInstructions)' on a null object reference
  at com.mapbox.services.android.navigation.ui.v5.NavigationViewModel.updateBannerInstruction(NavigationViewModel.java:376)
  at com.mapbox.services.android.navigation.ui.v5.NavigationViewModel.access$800(NavigationViewModel.java:47)
  at com.mapbox.services.android.navigation.ui.v5.NavigationViewModel$3.onMilestoneEvent(NavigationViewModel.java:283)
  at com.mapbox.services.android.navigation.v5.navigation.NavigationEventDispatcher.onMilestoneEvent(NavigationEventDispatcher.java:137)
  at com.mapbox.services.android.navigation.v5.navigation.RouteProcessorThreadListener.onMilestoneTrigger(RouteProcessorThreadListener.java:46)
  at com.mapbox.services.android.navigation.v5.navigation.RouteProcessorHandlerCallback$1.run(RouteProcessorHandlerCallback.java:98)
  at android.os.Handler.handleCallback(Handler.java:873)
  at android.os.Handler.dispatchMessage(Handler.java:99)
  at android.os.Looper.loop(Looper.java:193)
  at android.app.ActivityThread.main(ActivityThread.java:6669)
  at java.lang.reflect.Method.invoke(Native Method)
  at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)
@Guardiola31337 Guardiola31337 added bug Defect to be fixed. topic: instructions labels Aug 6, 2018
@danesfeder
Copy link
Contributor

Addressed in #1152

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Defect to be fixed.
Projects
None yet
Development

No branches or pull requests

2 participants