mirror of
https://github.com/ProjectSWGCore/NGECore2.git
synced 2026-09-22 07:13:28 -04:00
fixed tons of null pointers after loading objects from db
This commit is contained in:
@@ -63,7 +63,7 @@ public class SWGMultiMap<K, V> implements Multimap<K, V>, Serializable {
|
||||
private byte viewType;
|
||||
private short updateType;
|
||||
@NotPersistent
|
||||
protected transient final Object objectMutex = new Object();
|
||||
protected transient Object objectMutex = new Object();
|
||||
|
||||
public SWGMultiMap() { }
|
||||
|
||||
@@ -83,6 +83,10 @@ public class SWGMultiMap<K, V> implements Multimap<K, V>, Serializable {
|
||||
}
|
||||
}
|
||||
|
||||
public void init() {
|
||||
objectMutex = new Object();
|
||||
}
|
||||
|
||||
public Map<K, Collection<V>> asMap() {
|
||||
synchronized(objectMutex) {
|
||||
return map.asMap();
|
||||
|
||||
Reference in New Issue
Block a user