[hornetq-commits] JBoss hornetq SVN: r12177 - trunk/hornetq-rest/hornetq-rest/src/main/java/org/hornetq/rest/topic.

do-not-reply at jboss.org do-not-reply at jboss.org
Thu Feb 23 04:40:09 EST 2012


Author: borges
Date: 2012-02-23 04:40:07 -0500 (Thu, 23 Feb 2012)
New Revision: 12177

Modified:
   trunk/hornetq-rest/hornetq-rest/src/main/java/org/hornetq/rest/topic/PushSubscription.java
Log:
Avoid NPE inside finalize

Modified: trunk/hornetq-rest/hornetq-rest/src/main/java/org/hornetq/rest/topic/PushSubscription.java
===================================================================
--- trunk/hornetq-rest/hornetq-rest/src/main/java/org/hornetq/rest/topic/PushSubscription.java	2012-02-23 09:39:51 UTC (rev 12176)
+++ trunk/hornetq-rest/hornetq-rest/src/main/java/org/hornetq/rest/topic/PushSubscription.java	2012-02-23 09:40:07 UTC (rev 12177)
@@ -46,7 +46,8 @@
       {
          try
          {
-            session.close();
+            if (session != null)
+               session.close();
          }
          catch (HornetQException e)
          {



More information about the hornetq-commits mailing list