mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2025-01-31 12:22:36 +01:00
Fixed NPE unloading rooms - Fixes #789
This commit is contained in:
parent
50ca64f29b
commit
1afdf134cc
@ -377,7 +377,7 @@ public class RoomManager {
|
||||
public void unloadRoomsForHabbo(Habbo habbo) {
|
||||
List<Room> roomsToDispose = new ArrayList<>();
|
||||
for (Room room : this.activeRooms.values()) {
|
||||
if (!room.isPublicRoom() && !room.isStaffPromotedRoom() && room.getOwnerId() == habbo.getHabboInfo().getId() && room.getUserCount() == 0 && !this.roomCategories.get(room.getCategory()).isPublic()) {
|
||||
if (!room.isPublicRoom() && !room.isStaffPromotedRoom() && room.getOwnerId() == habbo.getHabboInfo().getId() && room.getUserCount() == 0 && (this.roomCategories.get(room.getCategory()) == null || !this.roomCategories.get(room.getCategory()).isPublic())) {
|
||||
roomsToDispose.add(room);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user