Add small change

This commit is contained in:
Alexander Sytnyk 2017-07-24 14:01:51 +03:00
parent 2bcf634962
commit 9a5b2255bc

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));