From 381f62eb63796d27a31d9535829546a66abde21c Mon Sep 17 00:00:00 2001 From: Alejandro <25-alejandro@users.noreply.git.krews.org> Date: Mon, 27 May 2019 13:41:28 +0300 Subject: [PATCH] Fix NullPointerException in TagGame --- src/main/java/com/eu/habbo/habbohotel/games/tag/TagGame.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/com/eu/habbo/habbohotel/games/tag/TagGame.java b/src/main/java/com/eu/habbo/habbohotel/games/tag/TagGame.java index fe6afd9d..ff5a8d52 100644 --- a/src/main/java/com/eu/habbo/habbohotel/games/tag/TagGame.java +++ b/src/main/java/com/eu/habbo/habbohotel/games/tag/TagGame.java @@ -31,6 +31,8 @@ public abstract class TagGame extends Game { @EventHandler public static void onUserLookAtPoint(RoomUnitLookAtPointEvent event) { + if (event.room == null || event.roomUnit == null || event.location == null) return; + if (RoomLayout.tilesAdjecent(event.roomUnit.getCurrentLocation(), event.location)) { Habbo habbo = event.room.getHabbo(event.roomUnit);