add npe checks 2
This commit is contained in:
parent
2481142f0b
commit
deefab0f8c
1 changed files with 3 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue