mirror of
https://github.com/ProjectSWGCore/NGECore2.git
synced 2026-07-14 00:02:07 -04:00
Fixed some nulls that can occur locally
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user