mask NPE
This commit is contained in:
parent
80aa712d6e
commit
9b3992c221
1 changed files with 1 additions and 1 deletions
|
@ -278,7 +278,7 @@ public class WaypointHelper {
|
|||
AlarmInfo info = AlarmInfo.createAlarmInfo(typeRule, 0, loc);
|
||||
|
||||
//Check if stop sign is tagged with direction=forward/backward
|
||||
if (info.getType() == AlarmInfoType.STOP) {
|
||||
if (info != null && info.getType() != null && info.getType() == AlarmInfoType.STOP) {
|
||||
//TODO: better than bearingVsRouteDirection would be routeVsWayDirection analysis
|
||||
if (ro.isStopDirectionOpposite(ro.bearingVsRouteDirection(loc))) {
|
||||
info = null;
|
||||
|
|
Loading…
Reference in a new issue