One more minor bug fix for a NPE.

This commit is contained in:
sandordornbush
2010-08-20 13:32:53 -07:00
parent cf1be26da2
commit 28d868985e
@@ -154,6 +154,9 @@ public class MyTracksOverlay extends Overlay {
ArrayList<Waypoint> currentWaypoints = waypoints;
for (int i = 1; i < currentWaypoints.size(); i++) {
Waypoint wpt = currentWaypoints.get(i);
if (wpt == null) {
continue;
}
Location loc = wpt.getLocation();
if (loc == null) {
continue;