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,8 +262,10 @@ public class RoutingHelper {
return finalLocation;
}
public void checkAndUpdateStartLocation(Location nextStartLocation) {
if (nextStartLocation != null) {
checkAndUpdateStartLocation(new LatLon(nextStartLocation.getLatitude(), nextStartLocation.getLongitude()));
}
}
public void checkAndUpdateStartLocation(LatLon newStartLocation) {
if (newStartLocation != null) {