Skip to content

Commit

Permalink
fix: 🩹 add null check
Browse files Browse the repository at this point in the history
  • Loading branch information
AnzhiZhang committed Oct 2, 2024
1 parent 8b96456 commit f2411ae
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ public void consumeEvent() {
}
}
String senderCard = curEvent.getSender().getCard();
String senderName = senderCard.isEmpty() ? curEvent.getSender().getNickname() : senderCard;
String senderName = senderCard == null || senderCard.isEmpty() ? curEvent.getSender().getNickname() : senderCard;
String content = String.join(" ", messages);
chatHub.getEventHub().onUserChat(new MessageEvent(
platform,
Expand Down

0 comments on commit f2411ae

Please sign in to comment.