summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--qpid/cpp/src/qpid/client/SessionBase_0_10.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/qpid/cpp/src/qpid/client/SessionBase_0_10.cpp b/qpid/cpp/src/qpid/client/SessionBase_0_10.cpp
index c933a64f07..e81b78ecd3 100644
--- a/qpid/cpp/src/qpid/client/SessionBase_0_10.cpp
+++ b/qpid/cpp/src/qpid/client/SessionBase_0_10.cpp
@@ -30,7 +30,10 @@ using namespace framing;
SessionBase_0_10::SessionBase_0_10() {}
SessionBase_0_10::~SessionBase_0_10() {}
-void SessionBase_0_10::close() { impl->close(); }
+void SessionBase_0_10::close()
+{
+ if (impl) impl->close();
+}
Execution& SessionBase_0_10::getExecution()
{