Author: borges
Date: 2011-12-07 06:58:43 -0500 (Wed, 07 Dec 2011)
New Revision: 11869
Modified:
trunk/tests/integration-tests/src/test/java/org/hornetq/tests/integration/cluster/distribution/ClusterTestBase.java
Log:
Check for null array
Modified:
trunk/tests/integration-tests/src/test/java/org/hornetq/tests/integration/cluster/distribution/ClusterTestBase.java
===================================================================
---
trunk/tests/integration-tests/src/test/java/org/hornetq/tests/integration/cluster/distribution/ClusterTestBase.java 2011-12-07
11:58:27 UTC (rev 11868)
+++
trunk/tests/integration-tests/src/test/java/org/hornetq/tests/integration/cluster/distribution/ClusterTestBase.java 2011-12-07
11:58:43 UTC (rev 11869)
@@ -587,10 +587,13 @@
@Override
protected void closeAllSessionFactories()
{
+ if (sfs != null)
+ {
for (int i = 0; i < sfs.length; i++)
{
closeSessionFactory(sfs[i]);
sfs[i] = null;
+ }
}
super.closeAllSessionFactories();
}
Show replies by date