Fixed some nulls that can occur locally

This commit is contained in:
Treeku
2014-05-17 22:01:33 +01:00
parent 424cc8fe23
commit 28ccc21d10
2 changed files with 6 additions and 2 deletions
+3 -1
View File
@@ -524,7 +524,9 @@ public class NGECore {
List<CreatureObject> deletedObjects = new ArrayList<CreatureObject>();
while(cursor.hasNext()) {
SWGObject creature = (SWGObject) cursor.next();
Object next = cursor.next();
if (next == null) continue;
SWGObject creature = (SWGObject) next;
if(!characterService.playerExists(creature.getObjectID()) && creature instanceof CreatureObject)
deletedObjects.add((CreatureObject) creature);
}