We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fd9def6 commit 13d5b7aCopy full SHA for 13d5b7a
src/com/rabbitmq/client/QueueingConsumer.java
@@ -137,7 +137,11 @@ private Delivery handle(Delivery delivery) {
137
delivery == null && _shutdown != null) {
138
if (delivery == POISON) {
139
_queue.add(POISON);
140
- assert _shutdown != null;
+ if (_shutdown == null) {
141
+ throw new IllegalStateException(
142
+ "POISON in queue, but null _shutdown. " +
143
+ "This should never happen, please report as a BUG");
144
+ }
145
}
146
throw Utility.fixStackTrace(_shutdown);
147
0 commit comments