[jboss-cvs] JBossAS SVN: r61309 - branches/Branch_4_0/cluster/src/main/org/jboss/ha/framework/server.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Tue Mar 13 16:02:35 EDT 2007


Author: bstansberry at jboss.com
Date: 2007-03-13 16:02:35 -0400 (Tue, 13 Mar 2007)
New Revision: 61309

Modified:
   branches/Branch_4_0/cluster/src/main/org/jboss/ha/framework/server/HAPartitionImpl.java
Log:
[JBAS-4202] Avoid NPE if additional_data is not set

Modified: branches/Branch_4_0/cluster/src/main/org/jboss/ha/framework/server/HAPartitionImpl.java
===================================================================
--- branches/Branch_4_0/cluster/src/main/org/jboss/ha/framework/server/HAPartitionImpl.java	2007-03-13 20:00:31 UTC (rev 61308)
+++ branches/Branch_4_0/cluster/src/main/org/jboss/ha/framework/server/HAPartitionImpl.java	2007-03-13 20:02:35 UTC (rev 61309)
@@ -1149,10 +1149,13 @@
    {
       byte[] localUniqueName = this.localJGAddress.getAdditionalData();
       if (localUniqueName == null)
+      {
          log.warn("No additional information has been found in the JavaGroup address: " +
                   "make sure you are running with a correct version of JGroups and that the protocol " +
                   " you are using supports the 'additionalData' behaviour");
-
+         return;
+      }
+      
       for (int i = 0; i < javaGroupIpAddresses.size(); i++)
       {
          IpAddress address = (IpAddress) javaGroupIpAddresses.elementAt(i);




More information about the jboss-cvs-commits mailing list