Ignore:
Timestamp:
2015-08-07T17:15:58+02:00 (9 years ago)
Author:
Don-vip
Message:

fix #11756, fix #11759 - NPEs

File:
1 edited

Legend:

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

    r8513 r8645  
    824824        double baseHdg = -1;
    825825        if (previousNode != null) {
    826             baseHdg =  Math.toDegrees(previousNode.getEastNorth()
    827                     .heading(getCurrentBaseNode().getEastNorth()));
     826            EastNorth en = previousNode.getEastNorth();
     827            if (en != null) {
     828                baseHdg = Math.toDegrees(en.heading(getCurrentBaseNode().getEastNorth()));
     829            }
    828830        }
    829831
Note: See TracChangeset for help on using the changeset viewer.