Fix issue in database tests where sogs being stored are not in a scene.

This puts an extra m_part.ParentGroup.Scene == null check at the top of SceneObjectPartInventory.QueryScriptStates()
This commit is contained in:
Justin Clark-Casey (justincc)
2012-07-03 22:58:58 +01:00
parent 3399596e0e
commit 3c9b9a848f

View File

@@ -220,7 +220,7 @@ namespace OpenSim.Region.Framework.Scenes
private void QueryScriptStates()
{
if (m_part == null || m_part.ParentGroup == null)
if (m_part == null || m_part.ParentGroup == null || m_part.ParentGroup.Scene == null)
return;
IScriptModule[] engines = m_part.ParentGroup.Scene.RequestModuleInterfaces<IScriptModule>();