Open devotaaabel opened 5 years ago
If there's a no match Route Refresh API now it produces a 200
with the following response
{
"code": "NoMatch",
"message": "No matching found",
"route": {}
}
That was serialized into a route objects with no legs, causing OP's NPE when trying to obtain the legs in https://github.com/mapbox/mapbox-navigation-android/blob/9b22ca69d42bc5619aaab9a88346e2b34084ca49/libandroid-navigation/src/main/java/com/mapbox/services/android/navigation/v5/navigation/RouteAnnotationUpdater.java#L18
Although https://github.com/mapbox/mapbox-navigation-android/pull/1916 fixed the issue we should 👀 the NoMatch
code
moving forward.
cc'ing @osana for MAS visibility
Also noting that there are other special codes returned from the Directions and Map Matching APIs (i.e. NoSegment
and NoRoute
) that we should also take into account.
cc @onesien
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
This is still an issue.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
I haven't been able to reproduce this. I have this PR but we need to track down the API call that is causing this issue. Wondering if we could send a non-crashing crash report.