add npe checks 2

This commit is contained in:
MadWasp79 2020-01-29 11:31:19 +02:00
parent 2481142f0b
commit deefab0f8c

View file

@ -262,7 +262,9 @@ public class RoutingHelper {
return finalLocation;
}
public void checkAndUpdateStartLocation(Location nextStartLocation) {
checkAndUpdateStartLocation(new LatLon(nextStartLocation.getLatitude(), nextStartLocation.getLongitude()));
if (nextStartLocation != null) {
checkAndUpdateStartLocation(new LatLon(nextStartLocation.getLatitude(), nextStartLocation.getLongitude()));
}
}
public void checkAndUpdateStartLocation(LatLon newStartLocation) {