From 8dda7e811104f521bdf5b9911a21e51a24842562 Mon Sep 17 00:00:00 2001 From: Alejandro <25-alejandro@users.noreply.git.krews.org> Date: Sun, 26 May 2019 19:28:51 +0300 Subject: [PATCH] Fix NullPointerException in Banzai refreshCounters --- .../habbo/habbohotel/games/battlebanzai/BattleBanzaiGame.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/com/eu/habbo/habbohotel/games/battlebanzai/BattleBanzaiGame.java b/src/main/java/com/eu/habbo/habbohotel/games/battlebanzai/BattleBanzaiGame.java index b59e0be7..4d4c57e5 100644 --- a/src/main/java/com/eu/habbo/habbohotel/games/battlebanzai/BattleBanzaiGame.java +++ b/src/main/java/com/eu/habbo/habbohotel/games/battlebanzai/BattleBanzaiGame.java @@ -405,6 +405,8 @@ public class BattleBanzaiGame extends Game public void refreshCounters(GameTeamColors teamColors) { + if (!this.teams.containsKey(teamColors)) return; + int totalScore = this.teams.get(teamColors).getTotalScore(); THashMap scoreBoards = this.room.getRoomSpecialTypes().getBattleBanzaiScoreboards(teamColors);