From edecf5181101d49ac0b76d73573d930b95e2b821 Mon Sep 17 00:00:00 2001 From: Alexander Heinlein Date: Fri, 6 May 2016 23:22:34 +0200 Subject: [PATCH] RoutingHelper: fix 2524 --- OsmAnd/src/net/osmand/plus/routing/RoutingHelper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OsmAnd/src/net/osmand/plus/routing/RoutingHelper.java b/OsmAnd/src/net/osmand/plus/routing/RoutingHelper.java index ac932b23f0..708decc36c 100644 --- a/OsmAnd/src/net/osmand/plus/routing/RoutingHelper.java +++ b/OsmAnd/src/net/osmand/plus/routing/RoutingHelper.java @@ -483,7 +483,7 @@ public class RoutingHelper { route.passIntermediatePoint(); TargetPointsHelper targets = app.getTargetPointsHelper(); String name = ""; - if(intermediatePoints != null ) { + if(intermediatePoints != null && !intermediatePoints.isEmpty()) { LatLon rm = intermediatePoints.remove(0); List ll = targets.getIntermediatePointsNavigation(); int ind = -1;