mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2024-12-03 11:16:26 +01:00
Fix NullPointerExceptions
This commit is contained in:
parent
992a961814
commit
1bfc2452b7
@ -14,7 +14,7 @@ public class FreezeGameTeam extends GameTeam {
|
||||
|
||||
@Override
|
||||
public void removeMember(GamePlayer gamePlayer) {
|
||||
if (gamePlayer.getHabbo() == null || gamePlayer.getHabbo().getHabboInfo().getCurrentRoom() == null) return;
|
||||
if (gamePlayer == null || gamePlayer.getHabbo() == null || gamePlayer.getHabbo().getHabboInfo().getCurrentRoom() == null) return;
|
||||
|
||||
Game game = gamePlayer.getHabbo().getHabboInfo().getCurrentRoom().getGame(FreezeGame.class);
|
||||
Room room = gamePlayer.getHabbo().getRoomUnit().getRoom();
|
||||
|
@ -4165,6 +4165,7 @@ public class Room implements Comparable<Room>, ISerialize, Runnable {
|
||||
}
|
||||
|
||||
public void unIdle(Habbo habbo) {
|
||||
if (habbo == null || habbo.getRoomUnit() == null) return;
|
||||
habbo.getRoomUnit().resetIdleTimer();
|
||||
this.sendComposer(new RoomUnitIdleComposer(habbo.getRoomUnit()).compose());
|
||||
WiredHandler.handle(WiredTriggerType.UNIDLES, habbo.getRoomUnit(), this, new Object[]{habbo});
|
||||
|
Loading…
Reference in New Issue
Block a user