add some null refs checks on script removal

This commit is contained in:
UbitUmarov
2022-11-10 16:10:47 +00:00
parent 52d8c6204e
commit 472c243362
2 changed files with 3 additions and 3 deletions

View File

@@ -513,7 +513,7 @@ namespace OpenSim.Region.ScriptEngine.Yengine
stackFrames = null;
m_DetectParams = null;
if (m_Part == null || m_Part.Inventory == null)
if (m_Part is null || m_Part.Inventory is null || m_Part.ParentGroup is null)
{
//we are gone and don't know it still
m_SleepUntil = DateTime.MaxValue;