summaryrefslogtreecommitdiff
path: root/qpid/cpp/src
diff options
context:
space:
mode:
Diffstat (limited to 'qpid/cpp/src')
-rw-r--r--qpid/cpp/src/qpid/broker/Queue.cpp2
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);