fix NPE
This commit is contained in:
parent
181566f295
commit
6748fa92c4
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue