Ignore:
Timestamp:
2016-08-13T17:26:03+02:00 (3 years ago)
Author:
Don-vip
Message:

fix #13322 - NPE

File:
1 edited

Legend:

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

    r10716 r10795  
    1414import java.util.LinkedList;
    1515import java.util.List;
     16import java.util.Objects;
    1617import java.util.Set;
    1718
     
    332333            if (!targetNode.equals(targetLocationNode)) {
    333334                LatLon targetLocationCoor = targetLocationNode.getCoor();
    334                 if (!targetNode.getCoor().equals(targetLocationCoor)) {
     335                if (!Objects.equals(targetNode.getCoor(), targetLocationCoor)) {
    335336                    Node newTargetNode = new Node(targetNode);
    336337                    newTargetNode.setCoor(targetLocationCoor);
Note: See TracChangeset for help on using the changeset viewer.