Changeset 5334 in josm for trunk


Ignore:
Timestamp:
2012-07-14T02:30:24+02:00 (12 years ago)
Author:
Don-vip
Message:

see #7505, see #7847 - Handle deleted nodes without coordinates in GeoJSON export (fix NPE)

File:
1 edited

Legend:

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

    r5305 r5334  
    104104
    105105    protected void appendCoord(LatLon c) {
    106         out.append("[").append(c.lon()).append(", ").append(c.lat()).append("]");
     106        if (c != null) {
     107            out.append("[").append(c.lon()).append(", ").append(c.lat()).append("]");
     108        }
    107109    }
    108110}
Note: See TracChangeset for help on using the changeset viewer.