From 40a33fa993468de77512ddda55ebbdaa037808d4 Mon Sep 17 00:00:00 2001 From: "Carl C. Trieloff" Date: Fri, 16 Oct 2009 12:56:46 +0000 Subject: Protect close method git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@825869 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/qpid/client/Connection.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'cpp/src') diff --git a/cpp/src/qpid/client/Connection.cpp b/cpp/src/qpid/client/Connection.cpp index 6f2fc2262c..ae1cfa5815 100644 --- a/cpp/src/qpid/client/Connection.cpp +++ b/cpp/src/qpid/client/Connection.cpp @@ -148,7 +148,8 @@ void Connection::resume(Session& session) { } void Connection::close() { - impl->close(); + if ( impl ) + impl->close(); } std::vector Connection::getKnownBrokers() { -- cgit v1.2.1