Ignore:
Timestamp:
2012-07-22T22:36:44+02:00 (12 years ago)
Author:
Don-vip
Message:

see #7847, see #7884 - Fix 2 NPE when dealing with nodes without coordinates + display "(none)" in history when coordinates are missing to distinguish this fact from the deleted state (and be homogenous with conflict dialog)

File:
1 edited

Legend:

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

    r5333 r5356  
    8080            if (!n.isIncomplete() && !n.isDeleted()) {
    8181                LatLon c = n.getCoor();
    82                 BBox box = new BBox(new LatLon(c.lat() - 0.0001, c.lon() - 0.0001), new LatLon(c.lat() + 0.0001, c.lon() + 0.0001));
    83                 if (!dataSet.searchNodes(box).contains(n)) {
    84                     printError("SEARCH NODES", "%s not found using Dataset.searchNodes()", n);
     82                if (c != null) {
     83                    BBox box = new BBox(new LatLon(c.lat() - 0.0001, c.lon() - 0.0001), new LatLon(c.lat() + 0.0001, c.lon() + 0.0001));
     84                    if (!dataSet.searchNodes(box).contains(n)) {
     85                        printError("SEARCH NODES", "%s not found using Dataset.searchNodes()", n);
     86                    }
    8587                }
    8688            }
Note: See TracChangeset for help on using the changeset viewer.