Fix NullPointerException in InteractionSwitch

This commit is contained in:
Beny 2019-05-15 18:09:06 +01:00
parent 6f4105ceb9
commit 57b13360ce

View File

@ -43,6 +43,9 @@ public class InteractionSwitch extends InteractionDefault
@Override
public void onClick(GameClient client, Room room, Object[] objects) throws Exception
{
if(client == null)
return;
if (!this.canToggle(client.getHabbo(), room))
{
RoomTile closestTile = null;