Fixed NullPointer in Rooms.

This commit is contained in:
KrewsOrg 2019-05-04 01:25:12 +01:00
parent 6522b08f7e
commit 05b0517e8d

View File

@ -54,6 +54,9 @@ public class RoomUserWalkEvent extends MessageHandler
if (x == roomUnit.getX() && y == roomUnit.getY()) if (x == roomUnit.getX() && y == roomUnit.getY())
return; return;
if (habbo.getHabboInfo().getCurrentRoom() == null || habbo.getHabboInfo().getCurrentRoom().getLayout() == null)
return;
RoomTile tile = habbo.getHabboInfo().getCurrentRoom().getLayout().getTile((short) x, (short) y); RoomTile tile = habbo.getHabboInfo().getCurrentRoom().getLayout().getTile((short) x, (short) y);
if (tile == null) if (tile == null)