Ignore:
Timestamp:
2018-06-03T19:21:09+02:00 (6 years ago)
Author:
Don-vip
Message:

fix #16339 - fix NPE

File:
1 edited

Legend:

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

    r13614 r13882  
    11821182
    11831183        // This happens when nothing is selected, but we still want to highlight the "target node"
    1184         if (mouseOnExistingNode == null && mousePos != null && getLayerManager().getEditDataSet().selectionEmpty()) {
     1184        DataSet ds = getLayerManager().getEditDataSet();
     1185        if (mouseOnExistingNode == null && mousePos != null && ds != null && ds.selectionEmpty()) {
    11851186            mouseOnExistingNode = mapView.getNearestNode(mousePos, OsmPrimitive::isSelectable);
    11861187        }
Note: See TracChangeset for help on using the changeset viewer.