mirror of https://github.com/apache/activemq.git
Fix exception when removing message from MemoryMessageStore
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@486382 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
16546f951a
commit
747acfef69
|
@ -77,7 +77,7 @@ public class MemoryMessageStore implements MessageStore{
|
||||||
public void removeMessage(MessageId msgId) throws IOException{
|
public void removeMessage(MessageId msgId) throws IOException{
|
||||||
synchronized(messageTable){
|
synchronized(messageTable){
|
||||||
messageTable.remove(msgId);
|
messageTable.remove(msgId);
|
||||||
if(lastBatchId!=null&lastBatchId.equals(msgId)){
|
if(lastBatchId!=null && lastBatchId.equals(msgId)){
|
||||||
lastBatchId=null;
|
lastBatchId=null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue