Merge remote-tracking branch 'origin/master'

This commit is contained in:
Weblate 2017-07-24 13:41:19 +02:00
commit 41c726a1af

View file

@ -579,7 +579,11 @@ public class PoiUIFilter implements SearchPoiTypeFilter, Comparable<PoiUIFilter>
private void putAllAcceptedTypes(Map<PoiCategory, LinkedHashSet<String>> types) {
for (PoiCategory category : types.keySet()) {
if (acceptedTypes.containsKey(category)) {
acceptedTypes.get(category).addAll(types.get(category));
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));
}