diff --git a/OsmAnd-java/src/main/java/net/osmand/router/RouteColorize.java b/OsmAnd-java/src/main/java/net/osmand/router/RouteColorize.java index 6abb9c47c0..6a0c5c5794 100644 --- a/OsmAnd-java/src/main/java/net/osmand/router/RouteColorize.java +++ b/OsmAnd-java/src/main/java/net/osmand/router/RouteColorize.java @@ -106,6 +106,10 @@ public class RouteColorize { } for (Track t : gpxFile.tracks) { for (TrkSegment ts : t.segments) { + if (ts.generalSegment || ts.points.size() < 2) { + continue; + } + for (WptPt p : ts.points) { latList.add(p.lat); lonList.add(p.lon);