Skip to content

Commit

Permalink
Fix No Clan Description NullPointerException
Browse files Browse the repository at this point in the history
  • Loading branch information
FireController1847 committed May 24, 2022
1 parent 595f990 commit 16e169d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ public void update() {
finalName = ourLayer.getDisplay().getClanName()
.replace("%clan%", clan.getName())
.replace("%clan_owner%", clan.getLeaders().get(0).getCleanName())
.replace("%clan_description%", clan.getDescription())
.replace("%clan_description%", clan.getDescription() != null ? clan.getDescription() : "")
.replace("%clan_tag%", clan.getTag())
.replace("%clan_member_count%", String.valueOf(clan.getMembers().size()));
}
Expand Down

0 comments on commit 16e169d

Please sign in to comment.