From 9b3992c221f21344c8c7cf16a26241142e4cf223 Mon Sep 17 00:00:00 2001 From: sonora Date: Sat, 20 Aug 2016 02:01:54 +0200 Subject: [PATCH] mask NPE --- OsmAnd/src/net/osmand/plus/helpers/WaypointHelper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OsmAnd/src/net/osmand/plus/helpers/WaypointHelper.java b/OsmAnd/src/net/osmand/plus/helpers/WaypointHelper.java index 4442e16f41..37dc36257a 100644 --- a/OsmAnd/src/net/osmand/plus/helpers/WaypointHelper.java +++ b/OsmAnd/src/net/osmand/plus/helpers/WaypointHelper.java @@ -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;