Add small change

This commit is contained in:
Alexander Sytnyk 2017-07-24 14:01:51 +03:00
parent d2941687a8
commit 65435f6658

View file

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