eliminated NPE possibility in QueueImpl class

This commit is contained in:
kurobako 2016-02-09 13:46:49 +01:00 committed by Clebert Suconic
parent e0f5cb6eee
commit b8dd0219a3
1 changed files with 3 additions and 1 deletions

View File

@ -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();