forked from upstream-mirrors/OpenTracks
One more minor bug fix for a NPE.
This commit is contained in:
@@ -154,6 +154,9 @@ public class MyTracksOverlay extends Overlay {
|
|||||||
ArrayList<Waypoint> currentWaypoints = waypoints;
|
ArrayList<Waypoint> currentWaypoints = waypoints;
|
||||||
for (int i = 1; i < currentWaypoints.size(); i++) {
|
for (int i = 1; i < currentWaypoints.size(); i++) {
|
||||||
Waypoint wpt = currentWaypoints.get(i);
|
Waypoint wpt = currentWaypoints.get(i);
|
||||||
|
if (wpt == null) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
Location loc = wpt.getLocation();
|
Location loc = wpt.getLocation();
|
||||||
if (loc == null) {
|
if (loc == null) {
|
||||||
continue;
|
continue;
|
||||||
|
|||||||
Reference in New Issue
Block a user