From e67f196ff20aa7970a80787da1292b90331470b3 Mon Sep 17 00:00:00 2001 From: VysotskiVadim Date: Wed, 18 Oct 2023 14:59:16 +0200 Subject: [PATCH] fixing unavoidable closures --- .../java/com/mapbox/navigation/base/route/NavigationRoute.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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,