fix bug undoing create
authorDave Stubbs <osm@randomjunk.co.uk>
Sat, 1 May 2010 10:06:19 +0000 (10:06 +0000)
committerDave Stubbs <osm@randomjunk.co.uk>
Sat, 1 May 2010 10:06:19 +0000 (10:06 +0000)
net/systemeD/halcyon/connection/actions/DeleteNodeAction.as

index 3a08001131a3dcdc61456f5a6c978426bfad9738..bb74207a0f24f553b9faa2532f08c577f97d9a10 100644 (file)
@@ -30,7 +30,8 @@ package net.systemeD.halcyon.connection.actions {
             setDeleted(false);
             markClean();
             entity.dispatchEvent(new EntityEvent(Connection.NEW_NODE, entity));
-            effects.undoAction();
+            if ( effects != null )
+                effects.undoAction();
             return SUCCESS;
         }
     }