From 285fe970758dbde95c151971b12216a80c62f61f Mon Sep 17 00:00:00 2001 From: Alejandro <25-alejandro@users.noreply.git.krews.org> Date: Sun, 23 Feb 2020 00:42:29 +0200 Subject: [PATCH] Fix NPE in freeze tile --- .../items/interactions/games/freeze/InteractionFreezeTile.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/eu/habbo/habbohotel/items/interactions/games/freeze/InteractionFreezeTile.java b/src/main/java/com/eu/habbo/habbohotel/items/interactions/games/freeze/InteractionFreezeTile.java index f8971b4f..5b98b827 100644 --- a/src/main/java/com/eu/habbo/habbohotel/items/interactions/games/freeze/InteractionFreezeTile.java +++ b/src/main/java/com/eu/habbo/habbohotel/items/interactions/games/freeze/InteractionFreezeTile.java @@ -76,7 +76,7 @@ public class InteractionFreezeTile extends HabboItem { @Override public boolean canStackAt(Room room, List>> itemsAtLocation) { for (Pair> set : itemsAtLocation) { - if (!set.getValue().isEmpty()) return false; + if (set.getValue() != null && !set.getValue().isEmpty()) return false; } return super.canStackAt(room, itemsAtLocation);