diff options
Diffstat (limited to 'qpid/cpp')
| -rw-r--r-- | qpid/cpp/src/qpid/acl/Acl.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/qpid/cpp/src/qpid/acl/Acl.cpp b/qpid/cpp/src/qpid/acl/Acl.cpp index 8a71cf7782..d6a6bd6140 100644 --- a/qpid/cpp/src/qpid/acl/Acl.cpp +++ b/qpid/cpp/src/qpid/acl/Acl.cpp @@ -248,7 +248,9 @@ bool Acl::readAclFile(std::string& aclFile, std::string& errorText) { boost::shared_ptr<AclData> d(new AclData); AclReader ar(aclValues.aclMaxConnectPerUser, aclValues.aclMaxQueuesPerUser); if (ar.read(aclFile, d)){ - agent->raiseEvent(_qmf::EventFileLoadFailed("", ar.getError())); + if (agent != 0){ + agent->raiseEvent(_qmf::EventFileLoadFailed("", ar.getError())); + } errorText = ar.getError(); QPID_LOG(error,ar.getError()); return false; |
