From fa8a974d200ede27bd28953de1f2dafbf7b4fa5b Mon Sep 17 00:00:00 2001 From: Gordon Sim Date: Tue, 20 Jan 2009 10:41:50 +0000 Subject: Fix tests broken by r735776: check payload pointer before use. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@735988 13f79535-47bb-0310-9956-ffa450edef68 --- qpid/cpp/src/qpid/broker/Queue.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'qpid/cpp/src') diff --git a/qpid/cpp/src/qpid/broker/Queue.cpp b/qpid/cpp/src/qpid/broker/Queue.cpp index 6e0d777276..962b463571 100644 --- a/qpid/cpp/src/qpid/broker/Queue.cpp +++ b/qpid/cpp/src/qpid/broker/Queue.cpp @@ -206,7 +206,7 @@ void Queue::requeue(const QueuedMessage& msg){ } void Queue::clearLVQIndex(const QueuedMessage& msg){ - const framing::FieldTable* ft = msg.payload->getApplicationHeaders(); + const framing::FieldTable* ft = msg.payload ? msg.payload->getApplicationHeaders() : 0; if (lastValueQueue && ft){ string key = ft->getAsString(qpidVQMatchProperty); lvq.erase(key); -- cgit v1.2.1