mirror of
https://github.com/ProjectSWGCore/NGECore2.git
synced 2026-08-04 05:16:21 -04:00
Added cellId null check for static obj scripts
This commit is contained in:
@@ -113,6 +113,11 @@ public class StaticService implements INetworkDispatch {
|
||||
|
||||
SWGObject cell = core.objectService.getObject(cellId);
|
||||
|
||||
if (cellId != 0 && cell == null) {
|
||||
System.err.println("CellId invalid for template " + template);
|
||||
return;
|
||||
}
|
||||
|
||||
if (cell != null && cell.getContainer() != null && cell.getContainer() instanceof BuildingObject) {
|
||||
buildingId = cell.getContainer().getObjectId();
|
||||
cellNumber = ((BuildingObject) cell.getContainer()).getCellNumberByObjectId(cellId);
|
||||
|
||||
Reference in New Issue
Block a user