Permalink
Browse files

prevent a NPE in checkState()

  • Loading branch information...
1 parent d6c3d51 commit 1da5ab1e1a1ec52b2c9a003f1a082fdc7b6a982d @jmesnil jmesnil committed Jun 15, 2010
Showing with 4 additions and 1 deletion.
  1. +4 −1 src/main/org/hornetq/ra/HornetQRASession.java
View
5 src/main/org/hornetq/ra/HornetQRASession.java
@@ -1622,6 +1622,9 @@ TopicSession getTopicSessionInternal() throws JMSException
*/
public void checkState() throws JMSException
{
- mc.checkTransactionActive();
+ if (mc != null)
+ {
+ mc.checkTransactionActive();
+ }
}
}

0 comments on commit 1da5ab1

Please sign in to comment.