diff --git a/src/main/java/com/eu/habbo/habbohotel/items/interactions/games/InteractionGameGate.java b/src/main/java/com/eu/habbo/habbohotel/items/interactions/games/InteractionGameGate.java index e5fc6212..83f1407b 100644 --- a/src/main/java/com/eu/habbo/habbohotel/items/interactions/games/InteractionGameGate.java +++ b/src/main/java/com/eu/habbo/habbohotel/items/interactions/games/InteractionGameGate.java @@ -46,7 +46,12 @@ public abstract class InteractionGameGate extends InteractionGameTeamItem } public void updateState(Game game, int maxPlayers) { - int memberCount = game.getTeam(this.teamColor).getMembers().size(); + int memberCount = 0; + + if(game.getTeam(this.teamColor) != null) { + memberCount = game.getTeam(this.teamColor).getMembers().size(); + } + if(memberCount > maxPlayers) { memberCount = maxPlayers; }