prevent npe

git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@978813 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Robert Davies 2010-07-24 06:44:15 +00:00
parent f206a1bd11
commit 5f400b3853
1 changed files with 2 additions and 2 deletions

View File

@ -1009,9 +1009,9 @@ public class MessageDatabase extends ServiceSupport implements BrokerServiceAwar
MessageKeys keys = sd.orderIndex.remove(tx, sequenceId);
if (keys != null) {
sd.locationIndex.remove(tx, keys.location);
}
recordAckMessageReferenceLocation(ackLocation, keys.location);
}
}
} else {
// In the topic case we need remove the message once it's been acked
// by all the subs