Guard against Scene being null in attachments it the wearing avatar is in the process of logging out.

avinationmerge
Melanie Thielker 2014-03-25 03:17:44 +01:00
parent 075cf2baa3
commit a30ad71651
1 changed files with 18 additions and 16 deletions

View File

@ -1886,6 +1886,8 @@ namespace OpenSim.Region.Framework.Scenes
{ {
SceneObjectPart part = parts[i]; SceneObjectPart part = parts[i];
if (Scene != null)
{
Scene.ForEachRootScenePresence(delegate(ScenePresence avatar) Scene.ForEachRootScenePresence(delegate(ScenePresence avatar)
{ {
if (avatar.ParentID == LocalId) if (avatar.ParentID == LocalId)
@ -1904,7 +1906,7 @@ namespace OpenSim.Region.Framework.Scenes
} }
}); });
} }
}
} }
public void AddScriptLPS(int count) public void AddScriptLPS(int count)