Fix logic

This commit is contained in:
Alexander Sytnyk 2017-07-24 12:37:02 +03:00
parent 843a1cd4db
commit d2941687a8

View file

@ -578,8 +578,10 @@ public class PoiUIFilter implements SearchPoiTypeFilter, Comparable<PoiUIFilter>
private void putAllAcceptedTypes(Map<PoiCategory, LinkedHashSet<String>> types) { private void putAllAcceptedTypes(Map<PoiCategory, LinkedHashSet<String>> types) {
for (PoiCategory category : types.keySet()) { for (PoiCategory category : types.keySet()) {
if (acceptedTypes.get(category) != null) { if (acceptedTypes.containsKey(category)) {
acceptedTypes.get(category).addAll(types.get(category)); if (acceptedTypes.get(category) != null) {
acceptedTypes.get(category).addAll(types.get(category));
}
} else { } else {
acceptedTypes.put(category, types.get(category)); acceptedTypes.put(category, types.get(category));
} }