Author: andre Date: 2009-12-03 14:04:23 +0100 (Thu, 03 Dec 2009) New Revision: 40103
Modified: mmbase/trunk/core/src/main/java/org/mmbase/bridge/util/Queries.java Log: got a java.lang.RuntimeException: Node not found !! (key = '-982' nor tmpKey = U-1024_-982) on this one, the 'new node' still had a negative number Modified: mmbase/trunk/core/src/main/java/org/mmbase/bridge/util/Queries.java =================================================================== --- mmbase/trunk/core/src/main/java/org/mmbase/bridge/util/Queries.java 2009-12-03 12:54:04 UTC (rev 40102) +++ mmbase/trunk/core/src/main/java/org/mmbase/bridge/util/Queries.java 2009-12-03 13:04:23 UTC (rev 40103) @@ -1028,7 +1028,7 @@ */ public static NodeQuery createNodeQuery(Node node) { NodeManager nm; - if (! node.isNew()) { + if (! node.isNew() && node.getNumber() >= 0) { // in case the nodemanager was _changed_ but not yet committed, the query will only work with the original node manager // which we can obtain like so nm = node.getCloud().getCloudContext().getCloud("mmbase", node.getCloud().getUser()).getNode(node.getNumber()).getNodeManager(); _______________________________________________ Cvs mailing list Cvs@lists.mmbase.org http://lists.mmbase.org/mailman/listinfo/cvs