Skip to content

Commit

Permalink
Catch null player name in StatEntry
Browse files Browse the repository at this point in the history
  • Loading branch information
ajgeiss0702 committed Feb 15, 2024
1 parent 9d1a209 commit de8800d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public class StatEntry {
public StatEntry(int position, String board, String prefix, String playerName, String playerDisplayName, UUID playerID, String suffix, double score, TimedType type) {
if(prefix == null) throw new IllegalArgumentException("Prefix cannot be null");
if(suffix == null) throw new IllegalArgumentException("Suffix cannot be null");
this.playerName = playerName;
this.playerName = playerName == null ? "" : playerName;
this.playerDisplayName = playerDisplayName == null ? "" : playerDisplayName;
this.score = score;
this.prefix = prefix;
Expand Down

0 comments on commit de8800d

Please sign in to comment.