You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by ta...@apache.org on 2016/05/31 20:36:46 UTC

activemq-cpp git commit: https://issues.apache.org/jira/browse/AMQCPP-598

Repository: activemq-cpp
Updated Branches:
  refs/heads/master 2774f6a14 -> 4754bb810


https://issues.apache.org/jira/browse/AMQCPP-598

Add null check

Project: http://git-wip-us.apache.org/repos/asf/activemq-cpp/repo
Commit: http://git-wip-us.apache.org/repos/asf/activemq-cpp/commit/4754bb81
Tree: http://git-wip-us.apache.org/repos/asf/activemq-cpp/tree/4754bb81
Diff: http://git-wip-us.apache.org/repos/asf/activemq-cpp/diff/4754bb81

Branch: refs/heads/master
Commit: 4754bb810f171f2a180b96c2a87b19afd1458016
Parents: 2774f6a
Author: Timothy Bish <ta...@gmail.com>
Authored: Tue May 31 16:33:54 2016 -0400
Committer: Timothy Bish <ta...@gmail.com>
Committed: Tue May 31 16:33:54 2016 -0400

----------------------------------------------------------------------
 activemq-cpp/src/main/activemq/cmsutil/CmsTemplate.cpp | 4 ++++
 1 file changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/activemq-cpp/blob/4754bb81/activemq-cpp/src/main/activemq/cmsutil/CmsTemplate.cpp
----------------------------------------------------------------------
diff --git a/activemq-cpp/src/main/activemq/cmsutil/CmsTemplate.cpp b/activemq-cpp/src/main/activemq/cmsutil/CmsTemplate.cpp
index 82e00e2..bff8e3c 100644
--- a/activemq-cpp/src/main/activemq/cmsutil/CmsTemplate.cpp
+++ b/activemq-cpp/src/main/activemq/cmsutil/CmsTemplate.cpp
@@ -630,6 +630,10 @@ void CmsTemplate::ReceiveExecutor::doInCms(cms::Session* session) {
 
     try {
 
+        if (session == NULL) {
+            return;
+        }
+
         // Create the consumer resource.
         consumer = parent->createConsumer(session, getDestination(session), selector, noLocal);