You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Noticed a crash in crashlytics.
We're running a version we are compiling ourselves. But checking master no changes from our branch and this repos master there are no changes between the two files (our NavigationMapRoute.java and the one in master here.
Fatal Exception: java.lang.IndexOutOfBoundsException: Invalid index 1121, size is 1121
at java.util.ArrayList.throwIndexOutOfBoundsException(ArrayList.java:255)
at java.util.ArrayList.get(ArrayList.java:308)
at com.mapbox.services.android.navigation.ui.v5.route.NavigationMapRoute.addTrafficToSource(SourceFile:2331)
Activity
danesfeder commentedon Oct 11, 2017
Thanks @davols, we will look into this
@cammace Do you think https://github.com/mapbox/mapbox-navigation-android/blob/master/libandroid-navigation-ui/src/main/java/com/mapbox/services/android/navigation/ui/v5/route/NavigationMapRoute.java#L331 should be
(i - 1)instead?ericrwolfe commentedon Oct 13, 2017
@bsudekum wasn't there a similar crash on iOS that was fixed?
ericrwolfe commentedon Oct 16, 2017
@danesfeder here's the iOS guard that worked around this crash: mapbox/mapbox-navigation-ios#696
Seems like a potential bug upstream in the directions API, but we should still guard against it.
cammace commentedon Oct 18, 2017
The fix for this is in #384 and will be in the 0.6.3 release. Closing.