Changeset 11505 in josm


Ignore:
Timestamp:
2017-01-27T02:12:55+01:00 (8 years ago)
Author:
Don-vip
Message:

add non-regression unit test for #4539

Location:
trunk
Files:
3 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/dialogs/layer/DuplicateAction.java

    r10606 r11505  
    7171    public void updateEnabledState() {
    7272        if (layer == null) {
    73             if (model.getSelectedLayers().size() == 1) {
     73            if (model != null && model.getSelectedLayers().size() == 1) {
    7474                setEnabled(model.getSelectedLayers().get(0) instanceof OsmDataLayer);
    7575            } else {
Note: See TracChangeset for help on using the changeset viewer.