mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2025-01-31 12:22:36 +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) {
|
public HabboItem getHabboItem(int id) {
|
||||||
|
if (this.roomItems == null || this.roomSpecialTypes == null)
|
||||||
|
return null; // room not loaded completely
|
||||||
|
|
||||||
HabboItem item;
|
HabboItem item;
|
||||||
synchronized (this.roomItems) {
|
synchronized (this.roomItems) {
|
||||||
item = this.roomItems.get(id);
|
item = this.roomItems.get(id);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user