Update of /var/cvs/applications/clustering/src/org/mmbase/clustering
In directory james.mmbase.org:/tmp/cvs-serv16795

Modified Files:
        ClusterManager.java 
Log Message:
avoid horrible NPE's because of the NonSerializableException which also occurs, 
but which I don't know how to fix yet..


See also: 
http://cvs.mmbase.org/viewcvs/applications/clustering/src/org/mmbase/clustering


Index: ClusterManager.java
===================================================================
RCS file: 
/var/cvs/applications/clustering/src/org/mmbase/clustering/ClusterManager.java,v
retrieving revision 1.37
retrieving revision 1.38
diff -u -b -r1.37 -r1.38
--- ClusterManager.java 9 May 2008 11:33:54 -0000       1.37
+++ ClusterManager.java 3 Jul 2008 15:08:29 -0000       1.38
@@ -29,7 +29,7 @@
  * @author Nico Klasens
  * @author Michiel Meeuwissen
  * @author Ernst Bunders
- * @version $Id: ClusterManager.java,v 1.37 2008/05/09 11:33:54 nklasens Exp $
+ * @version $Id: ClusterManager.java,v 1.38 2008/07/03 15:08:29 michiel Exp $
  */
 public abstract class ClusterManager implements AllEventListener, Runnable {
 
@@ -78,6 +78,7 @@
         //we only want to propagate the local events into the cluster
         if(event.getMachine().equals(MMBase.getMMBase().getMachineName())){
             byte[] message = createMessage(event);
+            if (message != null) {
             if (message.length > 5000) {
                 log.warn("Sending large event to the cluster. Serialization of 
 " + event + " is " + message.length + " long!");
             } else {
@@ -85,6 +86,9 @@
             }
             nodesToSend.offer(message);
         } else {
+                log.debug("MEssage was null");
+            }
+        } else {
             log.trace("Ignoring remote event from " + event.getMachine() + " 
it will not be propagated");
         }
     }
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs

Reply via email to