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)
{
Show replies by date