Update of /var/cvs/src/org/mmbase/bridge/implementation
In directory james.mmbase.org:/tmp/cvs-serv30397
Modified Files:
BasicCloud.java
Log Message:
MMB-1621
See also: http://cvs.mmbase.org/viewcvs/src/org/mmbase/bridge/implementation
See also: http://www.mmbase.org/jira/browse/MMB-1621
Index: BasicCloud.java
===================================================================
RCS file: /var/cvs/src/org/mmbase/bridge/implementation/BasicCloud.java,v
retrieving revision 1.185
retrieving revision 1.186
diff -u -b -r1.185 -r1.186
--- BasicCloud.java 4 Jul 2008 10:11:50 -0000 1.185
+++ BasicCloud.java 7 Jul 2008 11:09:39 -0000 1.186
@@ -29,7 +29,7 @@
* @author Rob Vermeulen
* @author Pierre van Rooden
* @author Michiel Meeuwissen
- * @version $Id: BasicCloud.java,v 1.185 2008/07/04 10:11:50 michiel Exp $
+ * @version $Id: BasicCloud.java,v 1.186 2008/07/07 11:09:39 michiel Exp $
*/
public class BasicCloud implements Cloud, Cloneable, Comparable<Cloud>,
SizeMeasurable, Serializable {
@@ -213,10 +213,13 @@
} catch (RuntimeException e) {
throw new NotFoundException("Something went wrong while getting
node with number '" + nodeNumber + "': " + e.getMessage() + " by cloud with
account " + getAccount(), e);
}
+
if (node == null) {
throw new NotFoundException("Node with number '" + nodeNumber + "'
does not exist.");
} else {
- return makeNode(node, nodeNumber);
+ BasicNode n = makeNode(node, nodeNumber);
+ add(n);
+ return n;
}
}
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs