Skip to content

Commit

Permalink
Fix null return from popMsgWithPredicateObeyPriority
Browse files Browse the repository at this point in the history
  • Loading branch information
smukil committed Nov 15, 2019
1 parent 84325c0 commit ad6c57f
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -921,6 +921,7 @@ private Message popMsgWithPredicateObeyPriority(String predicate, boolean localS
Collections.singletonList(messageStoreKey), builder.build());
}

if (retval.size() == 0) return null;
return new Message(retval.get(0), retval.get(1));

}
Expand Down

0 comments on commit ad6c57f

Please sign in to comment.