diff --git a/src/helma/objectmodel/db/Node.java b/src/helma/objectmodel/db/Node.java index 27edb790..5ec7c878 100644 --- a/src/helma/objectmodel/db/Node.java +++ b/src/helma/objectmodel/db/Node.java @@ -160,6 +160,10 @@ public final class Node implements INode, Serializable { // set lastmodified and created timestamps and mark as clean created = lastmodified = System.currentTimeMillis(); + if (state != CLEAN) { + markAs(CLEAN); + } + // Invoke onInit() if it is defined by this Node's prototype if (dbm != null) { try { @@ -173,10 +177,6 @@ public final class Node implements INode, Serializable { nmgr.nmgr.app.logError("Error invoking onInit()", x); } } - - if (state != CLEAN) { - markAs(CLEAN); - } } /**