Permalink
Browse files

https://issues.jboss.org/browse/JBPAPP-7521 - NPE on filter==null pas…

…sed on destroy queue
  • Loading branch information...
clebertsuconic committed Nov 18, 2011
1 parent 21b7ad8 commit 1a9cd932a14a08da21219cc5ecd90cd12b52079d
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/main/org/hornetq/core/server/impl/ScheduledDeliveryHandlerImpl.java
@@ -115,7 +115,7 @@ public int getScheduledCount()
while (iter.hasNext())
{
MessageReference ref = iter.next();
if (filter.match(ref.getMessage()))
if (filter == null || filter.match(ref.getMessage()))
{
iter.remove();
refs.add(ref);

0 comments on commit 1a9cd93

Please sign in to comment.