Prevent single-node ways from being created by undo.
[potlatch2.git] / net / systemeD / halcyon / connection / actions / DeleteWayAction.as
index 331826a8472e9e7b2d98233f1cff687fd9ea0939..f2fd1bc651d3506849721c3b6843afd47e0579ab 100644 (file)
@@ -57,7 +57,7 @@ package net.systemeD.halcyon.connection.actions {
               markClean();
             }
             entity.connection.dispatchEvent(new EntityEvent(Connection.NEW_WAY, way));
-            effects.undoAction();
+            if (effects) effects.undoAction();
             for each(var node:Node in oldNodeList) {
                 nodeList.push(node);
                node.addParent(way);