Add small change
This commit is contained in:
parent
2bcf634962
commit
9a5b2255bc
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) {
|
private void putAllAcceptedTypes(Map<PoiCategory, LinkedHashSet<String>> types) {
|
||||||
for (PoiCategory category : types.keySet()) {
|
for (PoiCategory category : types.keySet()) {
|
||||||
if (acceptedTypes.containsKey(category)) {
|
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));
|
acceptedTypes.get(category).addAll(types.get(category));
|
||||||
|
} else {
|
||||||
|
acceptedTypes.put(category, null);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
acceptedTypes.put(category, types.get(category));
|
acceptedTypes.put(category, types.get(category));
|
||||||
|
|
Loading…
Reference in a new issue