Changeset 15168 in josm


Ignore:
Timestamp:
2019-06-12T13:20:14+02:00 (3 months ago)
Author:
Don-vip
Message:

fix #17805 - return null when MergeNodesAction has nothing to do

File:
1 edited

Legend:

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

    r14654 r15168  
    351351                cmds.add(new DeleteCommand(nodesToDelete));
    352352            }
    353             return new SequenceCommand(/* for correct i18n of plural forms - see #9110 */
     353            return cmds.isEmpty() ? null : new SequenceCommand(/* for correct i18n of plural forms - see #9110 */
    354354                    trn("Merge {0} node", "Merge {0} nodes", nodes.size(), nodes.size()), cmds);
    355355        } catch (UserCancelException ex) {
Note: See TracChangeset for help on using the changeset viewer.