mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2024-11-26 16:30:52 +01:00
Fix NullPointerException in InteractionSwitch
This commit is contained in:
parent
6f4105ceb9
commit
57b13360ce
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user