Changeset 15472 in josm for trunk


Ignore:
Timestamp:
2019-10-23T22:59:56+02:00 (5 years ago)
Author:
Don-vip
Message:

fix #18253 - NPE

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/osm/Tagged.java

    r13804 r15472  
    143143     */
    144144    default boolean hasTag(String key, Collection<String> values) {
    145         return values.contains(get(key));
     145        String v = get(key);
     146        return v != null && values.contains(v);
    146147    }
    147148
Note: See TracChangeset for help on using the changeset viewer.