diff options
author | Gordon Sim <gsim@apache.org> | 2009-01-20 10:41:50 +0000 |
---|---|---|
committer | Gordon Sim <gsim@apache.org> | 2009-01-20 10:41:50 +0000 |
commit | fa8a974d200ede27bd28953de1f2dafbf7b4fa5b (patch) | |
tree | 444b799af854b870fa4a38e5b92007e3bd03b4d3 /qpid/cpp/src | |
parent | ed225bc299b42194e49a7d8451849e1ea99b2a25 (diff) | |
download | qpid-python-fa8a974d200ede27bd28953de1f2dafbf7b4fa5b.tar.gz |
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
Diffstat (limited to 'qpid/cpp/src')
-rw-r--r-- | qpid/cpp/src/qpid/broker/Queue.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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); |