From: Nico K. <nkl...@us...> - 2008-06-30 12:14:39
|
Update of /cvsroot/mmapps/mmapps/remotepublishing/src/org/mmbase/remotepublishing In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv11466/src/org/mmbase/remotepublishing Modified Files: CloudInfo.java Log Message: NPE check Index: CloudInfo.java =================================================================== RCS file: /cvsroot/mmapps/mmapps/remotepublishing/src/org/mmbase/remotepublishing/CloudInfo.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** CloudInfo.java 18 Apr 2007 07:48:28 -0000 1.2 --- CloudInfo.java 30 Jun 2008 12:14:28 -0000 1.3 *************** *** 72,82 **** private static CloudInfo getCloudInfo(Node localCloudNode) { if (instanceMap.containsKey(localCloudNode.getNumber())){ return instanceMap.get(localCloudNode.getNumber()); } - if (localCloudNode == null) { - throw new BridgeException("can not find cloud with number(" + localCloudNode.getNumber() - + ") in default admin cloud "); - } if (CLOUD.equals(localCloudNode.getNodeManager().getName()) == false) { throw new BridgeException("the node(" + localCloudNode.getNumber() --- 72,81 ---- private static CloudInfo getCloudInfo(Node localCloudNode) { + if (localCloudNode == null) { + throw new BridgeException("Local cloud node is null"); + } if (instanceMap.containsKey(localCloudNode.getNumber())){ return instanceMap.get(localCloudNode.getNumber()); } if (CLOUD.equals(localCloudNode.getNodeManager().getName()) == false) { throw new BridgeException("the node(" + localCloudNode.getNumber() |