diff --git a/OsmAnd/src/net/osmand/plus/views/mapwidgets/RouteInfoWidgetsFactory.java b/OsmAnd/src/net/osmand/plus/views/mapwidgets/RouteInfoWidgetsFactory.java index 8d278c41ae..23037c6bde 100644 --- a/OsmAnd/src/net/osmand/plus/views/mapwidgets/RouteInfoWidgetsFactory.java +++ b/OsmAnd/src/net/osmand/plus/views/mapwidgets/RouteInfoWidgetsFactory.java @@ -570,7 +570,7 @@ public class RouteInfoWidgetsFactory { RouteInfoLayer ls = view.getLayerByClass(RouteInfoLayer.class); if (ls != null) { int di = ls.getDirectionInfo(); - if (di >= 0 && ls.isVisible() & di < routingHelper.getRouteDirections().size()) { + if (di >= 0 && ls.isVisible() && di < routingHelper.getRouteDirections().size()) { RouteDirectionInfo next = routingHelper.getRouteDirections().get(di); if (next != null) { loclanes = next.getTurnType().getLanes();