Author: rajith
Date: Wed Jul 2 21:55:28 2014
New Revision: 1607488
URL: http://svn.apache.org/r1607488
Log:
QPID-5869 Added a check to see if agent is null before firing the event.
There are other places in the code where this check is missing. Chuck will take
care of them.
Modified:
qpid/trunk/qpid/cpp/src/qpid/acl/Acl.cpp
Modified: qpid/trunk/qpid/cpp/src/qpid/acl/Acl.cpp
URL:
http://svn.apache.org/viewvc/qpid/trunk/qpid/cpp/src/qpid/acl/Acl.cpp?rev=1607488&r1=1607487&r2=1607488&view=diff
==============================================================================
--- qpid/trunk/qpid/cpp/src/qpid/acl/Acl.cpp (original)
+++ qpid/trunk/qpid/cpp/src/qpid/acl/Acl.cpp Wed Jul 2 21:55:28 2014
@@ -248,7 +248,9 @@ bool Acl::readAclFile(std::string& aclFi
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;
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]