Changeset 5623 in josm for trunk/src/org


Ignore:
Timestamp:
2012-12-17T08:00:31+01:00 (12 years ago)
Author:
akks
Message:

fix NPE in FixDataHook, see #8211

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/upload/FixDataHook.java

    r5621 r5623  
    4444        deprecated.add(new FixData() {
    4545            public boolean fixKeys(Map<String, String> keys, OsmPrimitive osm) {
    46                 if(osm instanceof Relation && keys.get("type").equals("multipolygon") && keys.get("boundary").equals("administrative")) {
     46                if(osm instanceof Relation && "multipolygon".equals(keys.get("type")) && "administrative".equals(keys.get("boundary"))) {
    4747                    keys.put("type", "boundary");
    4848                    return true;
Note: See TracChangeset for help on using the changeset viewer.