Fixed a NullPointerException in calculateTileState

This commit is contained in:
Beny 2019-05-18 14:14:21 +01:00
parent a413bfb0c6
commit 8161e28411

View File

@ -639,7 +639,7 @@ public class Room implements Comparable<Room>, ISerialize, Runnable
private RoomTileState calculateTileState(RoomTile tile, HabboItem exclude)
{
if (tile.state == RoomTileState.INVALID)
if (tile == null || tile.state == RoomTileState.INVALID)
return RoomTileState.INVALID;
RoomTileState result = RoomTileState.OPEN;