mirror of
https://github.com/ProjectSWGCore/NGECore2.git
synced 2026-07-15 00:07:39 -04:00
Added getObject debug checks
Something is very wrong with getObject. It's returning null even on new objects that were just added to it and I need to be able to track when it's null on the TC.
This commit is contained in:
@@ -466,7 +466,17 @@ public class ObjectService implements INetworkDispatch {
|
||||
}
|
||||
|
||||
public SWGObject getObject(long objectID) {
|
||||
return objectList.get(objectID);
|
||||
SWGObject object = objectList.get(objectID);
|
||||
|
||||
if (object == null) {
|
||||
if (objectList.containsKey(objectID)) {
|
||||
System.err.println("getObject(): object is null but objectList contains objectID key");
|
||||
} else {
|
||||
System.err.println("getObject(): object is null");
|
||||
}
|
||||
}
|
||||
|
||||
return object;
|
||||
}
|
||||
|
||||
public Map<Long, SWGObject> getObjectList() {
|
||||
|
||||
Reference in New Issue
Block a user