eliminated NPE possibility in QueueImpl class
This commit is contained in:
parent
e0f5cb6eee
commit
b8dd0219a3
|
@ -2603,7 +2603,9 @@ public class QueueImpl implements Queue {
|
||||||
message = null;
|
message = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
boolean durableRef = message != null && message.isDurable() && queue.durable;
|
if (message == null) return;
|
||||||
|
|
||||||
|
boolean durableRef = message.isDurable() && queue.durable;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
message.decrementRefCount();
|
message.decrementRefCount();
|
||||||
|
|
Loading…
Reference in New Issue