Author: jmesnil
Date: 2010-06-15 10:31:42 -0400 (Tue, 15 Jun 2010)
New Revision: 9326
Modified:
trunk/src/main/org/hornetq/ra/HornetQRASession.java
Log:
prevent a NPE in checkState()
Modified: trunk/src/main/org/hornetq/ra/HornetQRASession.java
===================================================================
--- trunk/src/main/org/hornetq/ra/HornetQRASession.java 2010-06-15 12:38:45 UTC (rev
9325)
+++ trunk/src/main/org/hornetq/ra/HornetQRASession.java 2010-06-15 14:31:42 UTC (rev
9326)
@@ -1622,6 +1622,9 @@
*/
public void checkState() throws JMSException
{
- mc.checkTransactionActive();
+ if (mc != null)
+ {
+ mc.checkTransactionActive();
+ }
}
}
Show replies by date