mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2024-11-23 07:20:50 +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
|
@Override
|
||||||
public boolean execute(RoomUnit roomUnit, Room room, Object[] stuff) {
|
public boolean execute(RoomUnit roomUnit, Room room, Object[] stuff) {
|
||||||
return roomUnit.getDanceType() != DanceType.NONE;
|
return roomUnit != null && roomUnit.getDanceType() != DanceType.NONE;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -20,7 +20,7 @@ public class WiredConditionNotHabboIsDancing extends WiredConditionGroupMember {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean execute(RoomUnit roomUnit, Room room, Object[] stuff) {
|
public boolean execute(RoomUnit roomUnit, Room room, Object[] stuff) {
|
||||||
return roomUnit.getDanceType() == DanceType.NONE;
|
return roomUnit != null && roomUnit.getDanceType() == DanceType.NONE;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
Reference in New Issue
Block a user