mirror of
https://github.com/ProjectSWGCore/NGECore2.git
synced 2026-09-21 06:13:13 -04:00
Fixed odb bugs, fixed some null pointers
This commit is contained in:
@@ -180,7 +180,7 @@ public class ObjectService implements INetworkDispatch {
|
||||
|
||||
while(cursor.hasNext()) {
|
||||
final SWGObject building = (SWGObject) cursor.next();
|
||||
if(!(building instanceof BuildingObject))
|
||||
if(!(building instanceof BuildingObject) || building == null)
|
||||
continue;
|
||||
objectList.put(building.getObjectID(), building);
|
||||
Planet planet = core.terrainService.getPlanetByID(building.getPlanetId());
|
||||
|
||||
Reference in New Issue
Block a user