mirror of
https://github.com/ProjectSWGCore/NGECore2.git
synced 2026-08-01 02:16:15 -04:00
Fixed a null pointer exception when loading previous resources
This commit is contained in:
@@ -177,7 +177,7 @@ public class ObjectService implements INetworkDispatch {
|
||||
|
||||
while (cursor.hasNext()) {
|
||||
SWGObject object = (SWGObject) cursor.next();
|
||||
if (!(object instanceof BuildingObject))
|
||||
if (object != null && !(object instanceof BuildingObject))
|
||||
objectList.put(object.getObjectID(), object);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user