Fixed odb bugs, fixed some null pointers

This commit is contained in:
Light2
2014-05-03 18:12:27 +02:00
parent 5d4bf6a0a2
commit f05da881ab
5 changed files with 7 additions and 1 deletions
+1 -1
View File
@@ -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());