From 7759f62a3d32fec6aa772b3c02c49f4cb402d5c8 Mon Sep 17 00:00:00 2001 From: Beny Date: Fri, 17 May 2019 07:35:53 +0100 Subject: [PATCH] Fixed a NullPointerException in WiredHandler --- src/main/java/com/eu/habbo/habbohotel/wired/WiredHandler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/eu/habbo/habbohotel/wired/WiredHandler.java b/src/main/java/com/eu/habbo/habbohotel/wired/WiredHandler.java index a25016da..dfb6bd2a 100644 --- a/src/main/java/com/eu/habbo/habbohotel/wired/WiredHandler.java +++ b/src/main/java/com/eu/habbo/habbohotel/wired/WiredHandler.java @@ -217,7 +217,7 @@ public class WiredHandler private static boolean triggerEffect(InteractionWiredEffect effect, RoomUnit roomUnit, Room room, Object[] stuff, long millis) { boolean executed = false; - if (effect.canExecute(millis)) + if (effect != null && effect.canExecute(millis)) { executed = true; if (!effect.requiresTriggeringUser() || (roomUnit != null && effect.requiresTriggeringUser()))