Changeset 8590 in josm for trunk/src/org/openstreetmap/josm


Ignore:
Timestamp:
2015-07-10T00:05:33+02:00 (9 years ago)
Author:
Don-vip
Message:

fix #11630 - NPE (patch by michael2402)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/mapmode/ImproveWayAccuracyHelper.java

    r8378 r8590  
    8686        for (Node n : w.getNodes()) {
    8787            EastNorth nEN = n.getEastNorth();
     88
     89            if (nEN == null) {
     90                // Might happen if lat/lon for that point are not known.
     91                continue;
     92            }
     93
    8894            currentDistance = pEN.distance(nEN);
    8995
Note: See TracChangeset for help on using the changeset viewer.