mirror of https://github.com/apache/activemq.git
resolve: https://issues.apache.org/activemq/browse/AMQ-2589 - add null check
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@905349 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
a3607423c4
commit
722258e196
|
@ -878,8 +878,10 @@ public class MessageDatabase implements BrokerServiceAware {
|
|||
Long sequenceId = sd.messageIdIndex.remove(tx, command.getMessageId());
|
||||
if (sequenceId != null) {
|
||||
MessageKeys keys = sd.orderIndex.remove(tx, sequenceId);
|
||||
if (keys != null) {
|
||||
sd.locationIndex.remove(tx, keys.location);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
// In the topic case we need remove the message once it's been acked
|
||||
// by all the subs
|
||||
|
|
Loading…
Reference in New Issue