From cf6bcde867eb6ef965bf7c99e952231d49b18f8b Mon Sep 17 00:00:00 2001 From: Alexander Sytnyk Date: Mon, 24 Jul 2017 10:43:00 +0300 Subject: [PATCH] FIx NPE --- OsmAnd/src/net/osmand/plus/poi/PoiUIFilter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OsmAnd/src/net/osmand/plus/poi/PoiUIFilter.java b/OsmAnd/src/net/osmand/plus/poi/PoiUIFilter.java index e7d4e82846..6f178a3b80 100644 --- a/OsmAnd/src/net/osmand/plus/poi/PoiUIFilter.java +++ b/OsmAnd/src/net/osmand/plus/poi/PoiUIFilter.java @@ -578,7 +578,7 @@ public class PoiUIFilter implements SearchPoiTypeFilter, Comparable private void putAllAcceptedTypes(Map> types) { for (PoiCategory category : types.keySet()) { - if (acceptedTypes.containsKey(category)) { + if (acceptedTypes.get(category) != null) { acceptedTypes.get(category).addAll(types.get(category)); } else { acceptedTypes.put(category, types.get(category));