Fix NullPointerException in WiredConditionHabboIsDancing

This commit is contained in:
Alejandro 2019-06-11 17:07:15 +03:00
parent 53e35096d8
commit 6a2334ee89
2 changed files with 2 additions and 2 deletions

View File

@ -20,7 +20,7 @@ public class WiredConditionHabboIsDancing extends WiredConditionGroupMember {
@Override
public boolean execute(RoomUnit roomUnit, Room room, Object[] stuff) {
return roomUnit.getDanceType() != DanceType.NONE;
return roomUnit != null && roomUnit.getDanceType() != DanceType.NONE;
}
@Override

View File

@ -20,7 +20,7 @@ public class WiredConditionNotHabboIsDancing extends WiredConditionGroupMember {
@Override
public boolean execute(RoomUnit roomUnit, Room room, Object[] stuff) {
return roomUnit.getDanceType() == DanceType.NONE;
return roomUnit != null && roomUnit.getDanceType() == DanceType.NONE;
}
@Override