Changeset 12313 in josm for trunk


Ignore:
Timestamp:
2017-06-04T18:50:25+02:00 (7 years ago)
Author:
michael2402
Message:

Fix #14886: We can't use old move command if there is no edit layer.

File:
1 edited

Legend:

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

    r12284 r12313  
    791791    private void useLastMoveCommandIfPossible() {
    792792        DataSet dataSet = getLayerManager().getEditDataSet();
     793        if (dataSet == null) {
     794            // It may happen that there is no edit layer.
     795            return;
     796        }
    793797        Command c = getLastCommandInDataset(dataSet);
    794798        Collection<Node> affectedNodes = AllNodesVisitor.getAllNodes(dataSet.getSelected());
Note: See TracChangeset for help on using the changeset viewer.