Skip to content

Commit

Permalink
added check in case of future badge api change
Browse files Browse the repository at this point in the history
  • Loading branch information
YohannGutej authored and samfundev committed Jul 13, 2023
1 parent 7858dcf commit 86904d2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public ChatMessage(String message, String name, String color, List<Badge> badges
for (Badge badge : ChatManager.ffzBadgeMap.get(name.toLowerCase())) {
if (badge.replaces != null) {
for (int i = 0; i < badges.size(); i++) {
if (badges.get(i).name.equals(badge.replaces)) {
if (badges.get(i) != null && badges.get(i).name.equals(badge.replaces)) {
badges.set(i, badge);
break;
}
Expand Down

0 comments on commit 86904d2

Please sign in to comment.