Merge pull request #501 from naoliv/pull24

Fix possible wrong AND in comparison
This commit is contained in:
vshcherb 2013-08-05 10:16:09 -07:00
commit 87a482d373

View file

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