Ignore:
Timestamp:
2019-07-22T12:52:11+02:00 (5 years ago)
Author:
donvip
Message:

fix #josm16876 - NoSuchElementException

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/merge-overlap/src/mergeoverlap/MergeOverlapAction.java

    r34972 r35072  
    230230
    231231        // Commit
    232         UndoRedoHandler.getInstance().add(new SequenceCommand(tr("Merge Overlap (combine)"), cmds));
    233         getLayerManager().getEditDataSet().setSelected(sel);
    234         MainApplication.getMap().repaint();
     232        if (!cmds.isEmpty()) {
     233            UndoRedoHandler.getInstance().add(new SequenceCommand(tr("Merge Overlap (combine)"), cmds));
     234            getLayerManager().getEditDataSet().setSelected(sel);
     235            MainApplication.getMap().repaint();
     236        }
    235237
    236238        relations.clear();
Note: See TracChangeset for help on using the changeset viewer.