Changeset 13293 in josm


Ignore:
Timestamp:
2018-01-07T22:18:10+01:00 (10 days ago)
Author:
Don-vip
Message:

fix NPE seen in unit tests

File:
1 edited

Legend:

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

    r13229 r13293  
    817817        }
    818818
    819         Collection<OsmPrimitive> selection = getLayerManager().getEditDataSet().getSelected();
     819        DataSet ds = getLayerManager().getEditDataSet();
     820        Collection<OsmPrimitive> selection = ds != null ? ds.getSelected() : Collections.emptyList();
    820821
    821822        MapView mv = MainApplication.getMap().mapView;
Note: See TracChangeset for help on using the changeset viewer.