Changeset 14732 in josm for trunk/src


Ignore:
Timestamp:
2019-01-25T09:17:38+01:00 (6 years ago)
Author:
GerdP
Message:

fix #17246 NPE in TagChecker (regression of r14727)

Unit test added

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/validation/tests/TagChecker.java

    r14727 r14732  
    631631        if (presetValues != null)
    632632            sets.add(presetValues);
    633         sets.add(oftenUsedTags.get(key));
     633        Set<String> usedValues = oftenUsedTags.get(key);
     634        if (usedValues != null)
     635            sets.add(usedValues);
    634636        for (Set<String> possibleValues: sets) {
    635637            if (possibleValues.contains(harmonizedValue)) {
Note: See TracChangeset for help on using the changeset viewer.