mirror of
https://github.com/ProjectSWGCore/NGECore2.git
synced 2026-07-31 01:15:57 -04:00
fixed tons of null pointers after loading objects from db
This commit is contained in:
@@ -60,7 +60,7 @@ public class SWGMap<K, V> implements Map<K, V>, Serializable {
|
||||
private byte viewType;
|
||||
private short updateType;
|
||||
@NotPersistent
|
||||
protected transient final Object objectMutex = new Object();
|
||||
protected transient Object objectMutex = new Object();
|
||||
|
||||
public SWGMap() { }
|
||||
|
||||
@@ -80,6 +80,10 @@ public class SWGMap<K, V> implements Map<K, V>, Serializable {
|
||||
}
|
||||
}
|
||||
|
||||
public void init() {
|
||||
objectMutex = new Object();
|
||||
}
|
||||
|
||||
public void clear() {
|
||||
throw new UnsupportedOperationException();
|
||||
}
|
||||
@@ -305,8 +309,7 @@ public class SWGMap<K, V> implements Map<K, V>, Serializable {
|
||||
|
||||
@Override
|
||||
public void forEach(BiConsumer<? super K, ? super V> action) {
|
||||
// TODO Auto-generated method stub
|
||||
|
||||
map.forEach(action);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user