Ignore:
Timestamp:
2016-07-29T22:15:28+02:00 (8 years ago)
Author:
Don-vip
Message:

fix #13239, fix #13240 - Java 8: MapCSS Condition class (patches by michael2402) - gsoc-core

File:
1 edited

Legend:

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

    r8846 r10674  
    7575            throw new IllegalArgumentException("Expecting n/node/w/way/r/relation/area, but got '" + x[0] + '\'');
    7676        }
    77         for (final Map.Entry<String, String> i : TextTagParser.readTagsFromText(x[1]).entrySet()) {
    78             p.put(i.getKey(), i.getValue());
     77        if (x.length > 1) {
     78            for (final Map.Entry<String, String> i : TextTagParser.readTagsFromText(x[1]).entrySet()) {
     79                p.put(i.getKey(), i.getValue());
     80            }
    7981        }
    8082        return p;
Note: See TracChangeset for help on using the changeset viewer.