diff --git a/libnavigation-base/src/main/java/com/mapbox/navigation/base/route/NavigationRoute.kt b/libnavigation-base/src/main/java/com/mapbox/navigation/base/route/NavigationRoute.kt index 44f9c1792d2..f589a04bd35 100644 --- a/libnavigation-base/src/main/java/com/mapbox/navigation/base/route/NavigationRoute.kt +++ b/libnavigation-base/src/main/java/com/mapbox/navigation/base/route/NavigationRoute.kt @@ -68,7 +68,7 @@ class NavigationRoute internal constructor( routeOptions, directionsRoute, nativeRoute, - directionsResponse.routes().getOrNull(routeIndex)?.legs() + directionsRoute.legs() ?.map { leg -> leg.closures().orEmpty() } .orEmpty(), expirationTimeElapsedSeconds,