diff --git a/OsmAnd-java/src/net/osmand/binary/BinaryMapRouteReaderAdapter.java b/OsmAnd-java/src/net/osmand/binary/BinaryMapRouteReaderAdapter.java index 3f17f3e859..e4ee030db1 100644 --- a/OsmAnd-java/src/net/osmand/binary/BinaryMapRouteReaderAdapter.java +++ b/OsmAnd-java/src/net/osmand/binary/BinaryMapRouteReaderAdapter.java @@ -11,6 +11,7 @@ import java.util.ArrayList; import java.util.Calendar; import java.util.Collections; import java.util.Comparator; +import java.util.LinkedHashMap; import java.util.List; import java.util.Map; @@ -228,6 +229,7 @@ public class BinaryMapRouteReaderAdapter { public int searchRouteEncodingRule(String tag, String value) { if(decodingRules == null) { + decodingRules = new LinkedHashMap(); for(int i = 0; i < routeEncodingRules.size(); i++) { RouteTypeRule rt = routeEncodingRules.get(i); String ks = rt.getTag() +"#" + (rt.getValue() == null ? "" : rt.getValue());