This commit is contained in:
sonora 2016-08-09 18:36:51 +02:00
parent 181566f295
commit 6748fa92c4

View file

@ -725,7 +725,7 @@ public class RouteCalculationResult {
}
public Location getLocationFromRouteDirection(RouteDirectionInfo i){
if(i.routePointOffset < locations.size()){
if(i != null && locations != null && i.routePointOffset < locations.size()){
return locations.get(i.routePointOffset);
}
return null;