mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2025-01-18 23:46:28 +01:00
Fix NPE in Room
This commit is contained in:
parent
952fd8bd10
commit
e596b1231d
@ -2377,6 +2377,9 @@ public class Room implements Comparable<Room>, ISerialize, Runnable {
|
||||
}
|
||||
|
||||
public HabboItem getHabboItem(int id) {
|
||||
if (this.roomItems == null || this.roomSpecialTypes == null)
|
||||
return null; // room not loaded completely
|
||||
|
||||
HabboItem item;
|
||||
synchronized (this.roomItems) {
|
||||
item = this.roomItems.get(id);
|
||||
|
Loading…
Reference in New Issue
Block a user