commit | 4754bb810f171f2a180b96c2a87b19afd1458016 | [log] [tgz] |
---|---|---|
author | Timothy Bish <tabish121@gmail.com> | Tue May 31 16:33:54 2016 -0400 |
committer | Timothy Bish <tabish121@gmail.com> | Tue May 31 16:33:54 2016 -0400 |
tree | 404764655e907d5a56038801328a5c566033e294 | |
parent | 2774f6a14f29fd882d82c838f76652f9afe61f3e [diff] |
https://issues.apache.org/jira/browse/AMQCPP-598 Add null check
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 @@ try { + if (session == NULL) { + return; + } + // Create the consumer resource. consumer = parent->createConsumer(session, getDestination(session), selector, noLocal);