Merge pull request #2526 from scaidermern/master

RoutingHelper: fix #2524
This commit is contained in:
vshcherb 2016-05-07 23:24:36 +02:00
commit 40a74470b8

View file

@ -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<TargetPoint> ll = targets.getIntermediatePointsNavigation();
int ind = -1;