Skip to content

BotChat NPE

In GitLab by @ghost on Mar 15, 2021, 16:19

Don't know how to replicate this but this fucked up my Hotel lobby.

Room.java:3854 Can't take a reasonable screenshot from it since the console spams the error 3 times a second.

public void botChat(ServerMessage message) {
        if (message == null) {
            return;
        }

        for (Habbo habbo : this.getHabbos()) {
            if (!habbo.getHabboStats().ignoreBots)
                habbo.getClient().sendResponse(message);
        }
    }

AFAIK emulator was trying to send a message to someone that wasn't in the room, therefore creating a NPE and blackscreening the whole room.