From 02d373f8362c4208bb75b170246366199e119115 Mon Sep 17 00:00:00 2001 From: Yordi Date: Tue, 17 Jan 2023 12:03:20 +0100 Subject: [PATCH] Fix for function sending data to a user that has left #1807 --- src/main/java/com/eu/habbo/habbohotel/rooms/Room.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/com/eu/habbo/habbohotel/rooms/Room.java b/src/main/java/com/eu/habbo/habbohotel/rooms/Room.java index 4275bac9..f8a0c468 100644 --- a/src/main/java/com/eu/habbo/habbohotel/rooms/Room.java +++ b/src/main/java/com/eu/habbo/habbohotel/rooms/Room.java @@ -3318,6 +3318,7 @@ public class Room implements Comparable, ISerialize, Runnable { } for (Habbo habbo : this.getHabbos()) { + if (habbo == null) { return ; } if (!habbo.getHabboStats().isIgnoreBots()) habbo.getClient().sendResponse(message); }