Changeset 3430 in josm


Ignore:
Timestamp:
2010-08-13T21:32:07+02:00 (14 years ago)
Author:
jttt
Message:

Check for null coordinate when adding node to dataset

File:
1 edited

Legend:

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

    r3382 r3430  
    124124        super(0, false);
    125125        setEastNorth(eastNorth);
     126    }
     127
     128    @Override
     129    void setDataset(DataSet dataSet) {
     130        super.setDataset(dataSet);
     131        if (!isIncomplete() && (getCoor() == null || getEastNorth() == null))
     132            throw new DataIntegrityProblemException("Complete node with null coordinates: " + toString() + get3892DebugInfo());
    126133    }
    127134
Note: See TracChangeset for help on using the changeset viewer.