[jboss-cvs] JBossAS SVN: r61308 - branches/Branch_4_2/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:00:31 EDT 2007
Author: bstansberry at jboss.com
Date: 2007-03-13 16:00:31 -0400 (Tue, 13 Mar 2007)
New Revision: 61308
Modified:
branches/Branch_4_2/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_2/cluster/src/main/org/jboss/ha/framework/server/HAPartitionImpl.java
===================================================================
--- branches/Branch_4_2/cluster/src/main/org/jboss/ha/framework/server/HAPartitionImpl.java 2007-03-13 19:42:58 UTC (rev 61307)
+++ branches/Branch_4_2/cluster/src/main/org/jboss/ha/framework/server/HAPartitionImpl.java 2007-03-13 20:00:31 UTC (rev 61308)
@@ -1155,9 +1155,12 @@
{
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++)
{
More information about the jboss-cvs-commits
mailing list