Author: borges
Date: 2012-02-23 09:57:50 -0500 (Thu, 23 Feb 2012)
New Revision: 12185
Modified:
trunk/hornetq-core/src/main/java/org/hornetq/core/client/impl/ServerLocatorImpl.java
Log:
Check for null TransportConfiguration as seen in
DiscoveryClusterWithBackupFailoverTest.testFailBackupNodes() build 148.
Modified:
trunk/hornetq-core/src/main/java/org/hornetq/core/client/impl/ServerLocatorImpl.java
===================================================================
---
trunk/hornetq-core/src/main/java/org/hornetq/core/client/impl/ServerLocatorImpl.java 2012-02-23
14:19:44 UTC (rev 12184)
+++
trunk/hornetq-core/src/main/java/org/hornetq/core/client/impl/ServerLocatorImpl.java 2012-02-23
14:57:50 UTC (rev 12185)
@@ -729,6 +729,11 @@
retry = false;
TransportConfiguration tc = selectConnector();
+ if (tc == null)
+ {
+ throw new HornetQException(HornetQException.ILLEGAL_STATE,
+ "Couldn't select a
TransportConfiguration to create SessionFactory");
+ }
// try each factory in the list until we find one which works
Show replies by date