Changeset 15000 in josm


Ignore:
Timestamp:
2019-04-19T22:32:15+02:00 (6 years ago)
Author:
Don-vip
Message:

fix #17503 - NPE

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/command/MoveCommand.java

    r14302 r15000  
    181181    public void moveAgain(double x, double y) {
    182182        for (Node n : nodes) {
    183             n.setEastNorth(n.getEastNorth().add(x, y));
     183            EastNorth eastNorth = n.getEastNorth();
     184            if (eastNorth != null) {
     185                n.setEastNorth(eastNorth.add(x, y));
     186            }
    184187        }
    185188        this.x += x;
Note: See TracChangeset for help on using the changeset viewer.