null ptr crash fixed
This commit is contained in:
parent
da239a69ff
commit
c99f7d5b0e
1 changed files with 4 additions and 2 deletions
|
@ -549,10 +549,12 @@ public class RoutePlannerFrontEnd {
|
|||
if (start != null && start.pnt == null) {
|
||||
gctx.routePointsSearched++;
|
||||
RouteSegmentPoint rsp = findRouteSegment(start.loc.getLatitude(), start.loc.getLongitude(), gctx.ctx, null, false);
|
||||
if (rsp != null) {
|
||||
if (MapUtils.getDistance(rsp.getPreciseLatLon(), start.loc) < distThreshold) {
|
||||
start.pnt = rsp;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (start != null && start.pnt != null) {
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue