You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by ro...@apache.org on 2017/11/07 09:50:22 UTC

[sling-org-apache-sling-jms] 02/08: fixing potential race condition causing a NPE inside the JMS provider, failing tests intermittently

This is an automated email from the ASF dual-hosted git repository.

rombert pushed a commit to annotated tag org.apache.sling.jms-1.0.0
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-jms.git

commit a41fae55c3bdbdf2901a4946287e320af4ac5aaa
Author: Ian Boston <ie...@apache.org>
AuthorDate: Wed Sep 21 13:14:51 2016 +0000

    fixing potential race condition causing a NPE inside the JMS provider, failing tests intermittently
    
    git-svn-id: https://svn.apache.org/repos/asf/sling/trunk/contrib/commons/mom/jms@1761725 13f79535-47bb-0310-9956-ffa450edef68
---
 src/main/java/org/apache/sling/jms/JMSQueueManager.java | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/src/main/java/org/apache/sling/jms/JMSQueueManager.java b/src/main/java/org/apache/sling/jms/JMSQueueManager.java
index 59d888d..7c7b83b 100644
--- a/src/main/java/org/apache/sling/jms/JMSQueueManager.java
+++ b/src/main/java/org/apache/sling/jms/JMSQueueManager.java
@@ -175,7 +175,11 @@ public class JMSQueueManager implements QueueManager {
         }
 
         public void close() {
-            session.close();
+            try {
+                session.close();
+            } catch ( Exception e ) {
+                LOGGER.debug("Exception when closing session.",e);
+            }
         }
     }
 

-- 
To stop receiving notification emails like this one, please contact
"commits@sling.apache.org" <co...@sling.apache.org>.