mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2025-01-18 23:46:28 +01:00
Fix NullPointerException
This commit is contained in:
parent
222bdb5b1c
commit
67abfddb11
@ -17,6 +17,8 @@ public class WiredHighscoreMidnightUpdater implements Runnable {
|
||||
List<Room> rooms = Emulator.getGameEnvironment().getRoomManager().getActiveRooms();
|
||||
|
||||
for (Room room : rooms) {
|
||||
if (room == null || room.getRoomSpecialTypes() == null) continue;
|
||||
|
||||
THashSet<HabboItem> items = room.getRoomSpecialTypes().getItemsOfType(InteractionWiredHighscore.class);
|
||||
for (HabboItem item : items) {
|
||||
((InteractionWiredHighscore) item).reloadData();
|
||||
|
Loading…
Reference in New Issue
Block a user