mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2024-11-22 23:10:52 +01:00
Fixed a NullPointerException in calculateTileState
This commit is contained in:
parent
a413bfb0c6
commit
8161e28411
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user