From b79e23dc5c51f21736021d9646d5584ce7b96ee0 Mon Sep 17 00:00:00 2001 From: Melanie Thielker Date: Thu, 16 Jul 2009 08:45:52 +0000 Subject: Allow OpenSim to run without script engines enabled Fixes Mantis #3893 --- OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs b/OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs index 73935d1..084aa50 100644 --- a/OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs +++ b/OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs @@ -862,6 +862,8 @@ namespace OpenSim.Region.Framework.Scenes IScriptModule[] engines = m_part.ParentGroup.Scene.RequestModuleInterfaces(); List ret = new List(); + if (engines == null) // No engine at all + return new string[0]; foreach (TaskInventoryItem item in m_items.Values) { @@ -885,7 +887,10 @@ namespace OpenSim.Region.Framework.Scenes public Dictionary GetScriptStates() { IScriptModule[] engines = m_part.ParentGroup.Scene.RequestModuleInterfaces(); + Dictionary ret = new Dictionary(); + if (engines == null) // No engine at all + return ret; foreach (TaskInventoryItem item in m_items.Values) { -- cgit v1.1