From 9eb39406ad488bb3e2fb6f68685666cdf765d002 Mon Sep 17 00:00:00 2001 From: Melanie Date: Sat, 3 Nov 2012 20:35:09 +0100 Subject: Prevent a null client from crashing windlight. --- OpenSim/Region/CoreModules/LightShare/LightShareModule.cs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'OpenSim/Region/CoreModules/LightShare') diff --git a/OpenSim/Region/CoreModules/LightShare/LightShareModule.cs b/OpenSim/Region/CoreModules/LightShare/LightShareModule.cs index f49641f..f524490 100644 --- a/OpenSim/Region/CoreModules/LightShare/LightShareModule.cs +++ b/OpenSim/Region/CoreModules/LightShare/LightShareModule.cs @@ -153,6 +153,9 @@ namespace OpenSim.Region.CoreModules.World.LightShare public void SendProfileToClient(IClientAPI client, RegionLightShareData wl) { + if (client == null) + return; + if (m_enableWindlight) { if (m_scene.RegionInfo.WindlightSettings.valid) -- cgit v1.1