summaryrefslogtreecommitdiff
path: root/cpp/src
diff options
context:
space:
mode:
authorTed Ross <tross@apache.org>2008-06-02 17:23:07 +0000
committerTed Ross <tross@apache.org>2008-06-02 17:23:07 +0000
commit5ecaaf7bb68207a2f547dc998de75800c9d4622d (patch)
treee430daec0af3309e9fd3056495a26d9e391bb0dd /cpp/src
parentc3255209803ef77d64a2c94eb33d7e91559c827f (diff)
downloadqpid-python-5ecaaf7bb68207a2f547dc998de75800c9d4622d.tar.gz
Fixed dereference of null pointer
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@662490 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src')
-rw-r--r--cpp/src/qpid/broker/Connection.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/cpp/src/qpid/broker/Connection.cpp b/cpp/src/qpid/broker/Connection.cpp
index 61319f3c09..19e031dbe0 100644
--- a/cpp/src/qpid/broker/Connection.cpp
+++ b/cpp/src/qpid/broker/Connection.cpp
@@ -149,7 +149,8 @@ void Connection::notifyConnectionForced(const string& text)
void Connection::setUserId(const string& userId)
{
ConnectionState::setUserId(userId);
- mgmtObject->set_authIdentity(userId);
+ if (mgmtObject.get() != 0)
+ mgmtObject->set_authIdentity(userId);
}
void Connection::close(