Skip to content

Commit

Permalink
Fix NullPointerException by including a check if team is null
Browse files Browse the repository at this point in the history
  • Loading branch information
Xitee committed Jul 3, 2022
1 parent f4a0030 commit 79d7e5d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/de/xite/scoreboard/listeners/ConditionListener.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,9 @@ public void run() {
ScoreboardPlayer.updateScoreboard(p);
if(PowerBoard.pl.getConfig().getBoolean("tablist.ranks") || PowerBoard.pl.getConfig().getBoolean("chat.ranks")) {
Teams team = Teams.get(p);
if(team.getRawPrefix().contains("%player_world%") || team.getRawSuffix().contains("%player_world%"))
RankManager.updateTablistRanks(p);
if(team != null)
if(team.getRawPrefix().contains("%player_world%") || team.getRawSuffix().contains("%player_world%"))
RankManager.updateTablistRanks(p);
}
}
});
Expand Down

0 comments on commit 79d7e5d

Please sign in to comment.