From 5a0f1e9022ec1eb3e9f6140c73b86dcdec95b58d Mon Sep 17 00:00:00 2001 From: Melanie Thielker Date: Wed, 15 Apr 2009 23:17:25 +0000 Subject: Prevent a nullref when no script engines are loaded --- OpenSim/Region/Framework/Scenes/ScenePresence.cs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'OpenSim/Region/Framework/Scenes') diff --git a/OpenSim/Region/Framework/Scenes/ScenePresence.cs b/OpenSim/Region/Framework/Scenes/ScenePresence.cs index cda90d6..0abe715 100644 --- a/OpenSim/Region/Framework/Scenes/ScenePresence.cs +++ b/OpenSim/Region/Framework/Scenes/ScenePresence.cs @@ -1962,6 +1962,9 @@ namespace OpenSim.Region.Framework.Scenes // foreach (IScriptModule m in m_scriptEngines) { + if (m == null) // No script engine loaded + continue; + m.PostObjectEvent(grp.RootPart.UUID, "changed", new Object[] {16384}); } } -- cgit v1.1