Add small change
This commit is contained in:
parent
d2941687a8
commit
65435f6658
1 changed files with 3 additions and 1 deletions
|
@ -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));
|
||||
|
|
Loading…
Reference in a new issue