Skip to content

Commit

Permalink
[fix][broker] Fix NPE during active consumer is disconnected (#24008)
Browse files Browse the repository at this point in the history
(cherry picked from commit dbc09e1)
  • Loading branch information
rdhabalia authored and lhotari committed Feb 21, 2025
1 parent fb21183 commit 85daa34
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,8 @@ void readMoreEntries(Consumer consumer) {
final Consumer activeConsumer = getActiveConsumer();
if (consumer != activeConsumer) {
log.info("[{}] cancel the readMoreEntries because consumer {} is no longer the active consumer {}",
topic.getName(), consumer.consumerName(), activeConsumer.consumerName());
topic.getName(), consumer.consumerName(),
activeConsumer != null ? activeConsumer.consumerName() : null);
return;
}
if (havePendingRead) {
Expand Down

0 comments on commit 85daa34

Please sign in to comment.