Changeset 2090 in josm


Ignore:
Timestamp:
2009-09-09T20:51:45+02:00 (12 years ago)
Author:
Gubaer
Message:

fixed #3440: unexpected exception when trying to tag a way

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/tagging/TaggingPreset.java

    r2088 r2090  
    126126        returnValue.values = new TreeSet<String>();
    127127        for (OsmPrimitive s : sel) {
    128             returnValue.values.add(OsmUtils.getNamedOsmBoolean(s.get(key)));
     128            String booleanValue = OsmUtils.getNamedOsmBoolean(s.get(key));
     129            if (booleanValue != null) {
     130                returnValue.values.add(booleanValue);
     131            }
    129132        }
    130133        return returnValue;
Note: See TracChangeset for help on using the changeset viewer.