mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2024-11-27 00:40:52 +01:00
Fix NullPointerException in WiredConditionHabboIsDancing
This commit is contained in:
parent
53e35096d8
commit
6a2334ee89
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user