Fixed a null pointer exception when loading previous resources

This commit is contained in:
Josh-Larson
2014-07-30 21:58:35 -05:00
parent 28201b06a2
commit 6f6d802b55
+1 -1
View File
@@ -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);
}