Fix possible wrong AND in comparison

This commit is contained in:
Nelson A. de Oliveira 2013-08-03 10:23:14 -03:00
parent ca60148431
commit c479a91a07

View file

@ -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();