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/10/18 23:22:54 UTC

[sling-org-apache-sling-jms] 02/14: 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 branch master
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-jms.git

commit 07447227baf10286ccdbe025e92650aedc0a340a
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@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>.