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()
0.7.4.1
Justin Clark-Casey (justincc) 2012-07-03 22:58:58 +01:00
parent 3399596e0e
commit 3c9b9a848f
1 changed files with 1 additions and 1 deletions

View File

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