From 145c02681f12d792285eac17cb26a253dec3cca3 Mon Sep 17 00:00:00 2001 From: David Silva Date: Tue, 5 May 2020 12:57:18 +0200 Subject: [PATCH] fix(WiredEffectMoveFurniTowards): npe --- .../wired/effects/WiredEffectMoveFurniTowards.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/com/eu/habbo/habbohotel/items/interactions/wired/effects/WiredEffectMoveFurniTowards.java b/src/main/java/com/eu/habbo/habbohotel/items/interactions/wired/effects/WiredEffectMoveFurniTowards.java index f1c4166d..849a59b2 100644 --- a/src/main/java/com/eu/habbo/habbohotel/items/interactions/wired/effects/WiredEffectMoveFurniTowards.java +++ b/src/main/java/com/eu/habbo/habbohotel/items/interactions/wired/effects/WiredEffectMoveFurniTowards.java @@ -107,6 +107,10 @@ public class WiredEffectMoveFurniTowards extends InteractionWiredEffect { RoomLayout layout = room.getLayout(); boolean collided = false; + if (layout == null) { + break; + } + for (int i = 0; i < 3; i++) { if (target != null) break;