diff options
author | Melanie | 2012-11-03 20:35:09 +0100 |
---|---|---|
committer | Melanie | 2012-11-03 20:35:09 +0100 |
commit | 9eb39406ad488bb3e2fb6f68685666cdf765d002 (patch) | |
tree | b39eff7c8ac52c4b819c3485fb5197a8ffbd5dc6 /OpenSim/Region/CoreModules | |
parent | Squash reporting HelloNeighbor exception - it simply means the other sim (diff) | |
download | opensim-SC-9eb39406ad488bb3e2fb6f68685666cdf765d002.zip opensim-SC-9eb39406ad488bb3e2fb6f68685666cdf765d002.tar.gz opensim-SC-9eb39406ad488bb3e2fb6f68685666cdf765d002.tar.bz2 opensim-SC-9eb39406ad488bb3e2fb6f68685666cdf765d002.tar.xz |
Prevent a null client from crashing windlight.
Diffstat (limited to 'OpenSim/Region/CoreModules')
-rw-r--r-- | OpenSim/Region/CoreModules/LightShare/LightShareModule.cs | 3 |
1 files changed, 3 insertions, 0 deletions
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 | |||
153 | 153 | ||
154 | public void SendProfileToClient(IClientAPI client, RegionLightShareData wl) | 154 | public void SendProfileToClient(IClientAPI client, RegionLightShareData wl) |
155 | { | 155 | { |
156 | if (client == null) | ||
157 | return; | ||
158 | |||
156 | if (m_enableWindlight) | 159 | if (m_enableWindlight) |
157 | { | 160 | { |
158 | if (m_scene.RegionInfo.WindlightSettings.valid) | 161 | if (m_scene.RegionInfo.WindlightSettings.valid) |