Ignore:
Timestamp:
2012-07-12T08:45:22+02:00 (12 years ago)
Author:
framm
Message:

handle deleted nodes without lat/lon. apply patches from ticket; closes #7847

File:
1 edited

Legend:

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

    r5025 r5326  
    136136        if (n.isIncomplete()) return;
    137137        addCommon(n, "node");
    138         out.print(" lat='"+n.getCoor().lat()+"' lon='"+n.getCoor().lon()+"'");
     138        if (n.getCoor() != null) {
     139            out.print(" lat='"+n.getCoor().lat()+"' lon='"+n.getCoor().lon()+"'");
     140        }
    139141        if (!withBody) {
    140142            out.println("/>");
Note: See TracChangeset for help on using the changeset viewer.