Changeset 12091 in josm for trunk/src/org/openstreetmap/josm


Ignore:
Timestamp:
2017-05-09T20:02:36+02:00 (3 years ago)
Author:
Don-vip
Message:

fix #14762 - NPE

File:
1 edited

Legend:

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

    r12064 r12091  
    13011301    public Collection<? extends OsmPrimitive> getPreservedPrimitives() {
    13021302        DataSet ds = getLayerManager().getEditDataSet();
    1303         return ds != null ? ds.getSelected() : null;
     1303        return ds != null ? ds.getSelected() : Collections.emptySet();
    13041304    }
    13051305
Note: See TracChangeset for help on using the changeset viewer.