Changeset 7675 in josm for trunk/src/org/openstreetmap/josm/data/osm/Way.java
- Timestamp:
- 2014-10-29T21:28:16+01:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/osm/Way.java
r7587 r7675 285 285 WayData wayData = (WayData) data; 286 286 287 if (!wayData.getNodes().isEmpty() && getDataSet() == null) { 288 throw new AssertionError("Data consistency problem - way without dataset detected"); 289 } 290 287 291 List<Node> newNodes = new ArrayList<>(wayData.getNodes().size()); 288 292 for (Long nodeId : wayData.getNodes()) { … … 290 294 if (node != null) { 291 295 newNodes.add(node); 292 } else 296 } else { 293 297 throw new AssertionError("Data consistency problem - way with missing node detected"); 298 } 294 299 } 295 300 setNodes(newNodes);
Note:
See TracChangeset
for help on using the changeset viewer.