RoutingHelper: fix 2524

This commit is contained in:
Alexander Heinlein 2016-05-06 23:22:34 +02:00
parent a5ccafa209
commit edecf51811

View file

@ -483,7 +483,7 @@ public class RoutingHelper {
route.passIntermediatePoint(); route.passIntermediatePoint();
TargetPointsHelper targets = app.getTargetPointsHelper(); TargetPointsHelper targets = app.getTargetPointsHelper();
String name = ""; String name = "";
if(intermediatePoints != null ) { if(intermediatePoints != null && !intermediatePoints.isEmpty()) {
LatLon rm = intermediatePoints.remove(0); LatLon rm = intermediatePoints.remove(0);
List<TargetPoint> ll = targets.getIntermediatePointsNavigation(); List<TargetPoint> ll = targets.getIntermediatePointsNavigation();
int ind = -1; int ind = -1;