Prevent single-node ways from being created by undo.
[potlatch2.git] / net / systemeD / halcyon / connection / actions / DeleteWayAction.as
index 331826a..f2fd1bc 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);