Ignore:
Timestamp:
2011-08-31T21:23:59+02:00 (13 years ago)
Author:
bastiK
Message:

don't throw NPE when there is <changeset> object with <tag> elements at the top of the file (see #6742)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/io/OsmReader.java

    r4310 r4389  
    268268                        throwException(tr("Missing key or value attribute in tag."));
    269269                    }
    270                     currentPrimitive.put(key.intern(), value.intern());
    271 
     270                    if (currentPrimitive != null) {
     271                        currentPrimitive.put(key.intern(), value.intern());
     272                    }
    272273                } else {
    273274                    System.out.println(tr("Undefined element ''{0}'' found in input stream. Skipping.", qName));
Note: See TracChangeset for help on using the changeset viewer.