mirror of https://github.com/apache/activemq.git
store can be null for a temp q, npe will hide out of sync error message, observed once in AMQ2102Test
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@903225 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
b85b71e297
commit
def2a34915
|
@ -591,10 +591,13 @@ public class Queue extends BaseDestination implements Task, UsageListener {
|
|||
}
|
||||
|
||||
Message loadMessage(MessageId messageId) throws IOException {
|
||||
Message msg = store.getMessage(messageId);
|
||||
Message msg = null;
|
||||
if (store != null) { // can be null for a temp q
|
||||
msg = store.getMessage(messageId);
|
||||
if (msg != null) {
|
||||
msg.setRegionDestination(this);
|
||||
}
|
||||
}
|
||||
return msg;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue