Skip to content

Commit

Permalink
Merge branch 'apache:master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
haozhijie9527 authored Jun 29, 2021
2 parents 20b6c39 + 0cf3846 commit ccbac89
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,9 @@ public void collectConsumerOffset() {
MessageModel messageModel = MessageModel.CLUSTERING;
try {
onlineConsumers = mqAdminExt.examineConsumerConnectionInfo(group);
messageModel = onlineConsumers.getMessageModel();
if (onlineConsumers.getMessageModel() != null) {
messageModel = onlineConsumers.getMessageModel();
}
} catch (InterruptedException | RemotingException ex) {
log.error(String.format("get topic's(%s) online consumers(%s) exception", topic, group), ex);
} catch (MQClientException ex) {
Expand Down

0 comments on commit ccbac89

Please sign in to comment.