Author: gsim
Date: Tue Feb 24 20:54:48 2009
New Revision: 747540
URL: http://svn.apache.org/viewvc?rev=747540&view=rev
Log:
Check that broker pointer is not null before invoking on it.
Modified:
qpid/trunk/qpid/cpp/src/qpid/broker/LinkRegistry.cpp
Modified: qpid/trunk/qpid/cpp/src/qpid/broker/LinkRegistry.cpp
URL:
http://svn.apache.org/viewvc/qpid/trunk/qpid/cpp/src/qpid/broker/LinkRegistry.cpp?rev=747540&r1=747539&r2=747540&view=diff
==============================================================================
--- qpid/trunk/qpid/cpp/src/qpid/broker/LinkRegistry.cpp (original)
+++ qpid/trunk/qpid/cpp/src/qpid/broker/LinkRegistry.cpp Tue Feb 24 20:54:48
2009
@@ -36,7 +36,7 @@
#define LINK_MAINT_INTERVAL 2
LinkRegistry::LinkRegistry (Broker* _broker) : broker(_broker), parent(0),
store(0), passive(false), passiveChanged(false),
-
realm(broker->getOptions().realm)
+ realm(broker ?
broker->getOptions().realm : "")
{
timer.add (intrusive_ptr<TimerTask> (new Periodic(*this)));
}
---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project: http://qpid.apache.org
Use/Interact: mailto:[email protected]