From 4bd2135d7598f6005890511b7a3b99a145862b49 Mon Sep 17 00:00:00 2001 From: MadWasp79 Date: Thu, 25 Jun 2020 08:53:20 +0300 Subject: [PATCH] quick fix for npe --- .../java/net/osmand/binary/BinaryMapRouteReaderAdapter.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/OsmAnd-java/src/main/java/net/osmand/binary/BinaryMapRouteReaderAdapter.java b/OsmAnd-java/src/main/java/net/osmand/binary/BinaryMapRouteReaderAdapter.java index 64d6f7cdf7..c98ec6396f 100644 --- a/OsmAnd-java/src/main/java/net/osmand/binary/BinaryMapRouteReaderAdapter.java +++ b/OsmAnd-java/src/main/java/net/osmand/binary/BinaryMapRouteReaderAdapter.java @@ -366,13 +366,13 @@ public class BinaryMapRouteReaderAdapter { stopSign = id; } else if (tags.equals("highway") && val.equals("give_way")){ giveWaySign = id; - } else if (tags.equals("traffic_signals:direction")){ + } else if (tags.equals("traffic_signals:direction") && val != null){ if (val.equals("forward")) { directionTrafficSignalsForward = id; } else if (val.equals("backward")) { directionTrafficSignalsBackward = id; } - } else if (tags.equals("direction")) { + } else if (tags.equals("direction") && val != null) { if (val.equals("forward")) { directionForward = id; } else if (val.equals("backward")) {