Ignore:
Timestamp:
2012-08-08T21:02:45+02:00 (12 years ago)
Author:
donvip
Message:

[josm_revert] fix #josm7934 - NPE when downloading deleted node in reverter plugin

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/reverter/src/reverter/ChangesetReverter.java

    r27393 r28534  
    241241        switch (current.getType()) {
    242242        case NODE:
    243             return new LatLon(((Node)current).getCoor()).equals(((HistoryNode)history).getCoords());
     243                LatLon currentCoor = ((Node)current).getCoor();
     244                LatLon historyCoor = ((HistoryNode)history).getCoords();
     245                return currentCoor == historyCoor || (currentCoor != null && historyCoor != null && currentCoor.equals(historyCoor));
    244246        case WAY:
    245247            List<Node> currentNodes = ((Way)current).getNodes();
Note: See TracChangeset for help on using the changeset viewer.