diff --git a/OsmAnd-java/src/main/java/net/osmand/binary/BinaryMapDataObject.java b/OsmAnd-java/src/main/java/net/osmand/binary/BinaryMapDataObject.java index 4a3c465699..8966256ea5 100644 --- a/OsmAnd-java/src/main/java/net/osmand/binary/BinaryMapDataObject.java +++ b/OsmAnd-java/src/main/java/net/osmand/binary/BinaryMapDataObject.java @@ -109,7 +109,7 @@ public class BinaryMapDataObject { } public boolean containsAdditionalType(int cachedType) { - if (cachedType != -1) { + if (cachedType != -1 && additionalTypes != null) { for (int i = 0; i < additionalTypes.length; i++) { if (additionalTypes[i] == cachedType) { return true;