From c479a91a074ed2cd39cd4b27cc5b7b9dd34d5c1d Mon Sep 17 00:00:00 2001 From: "Nelson A. de Oliveira" Date: Sat, 3 Aug 2013 10:23:14 -0300 Subject: [PATCH] Fix possible wrong AND in comparison --- .../osmand/plus/views/mapwidgets/RouteInfoWidgetsFactory.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OsmAnd/src/net/osmand/plus/views/mapwidgets/RouteInfoWidgetsFactory.java b/OsmAnd/src/net/osmand/plus/views/mapwidgets/RouteInfoWidgetsFactory.java index a9690c8575..fae677a073 100644 --- a/OsmAnd/src/net/osmand/plus/views/mapwidgets/RouteInfoWidgetsFactory.java +++ b/OsmAnd/src/net/osmand/plus/views/mapwidgets/RouteInfoWidgetsFactory.java @@ -569,7 +569,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();