diff options
author | UbitUmarov | 2018-10-20 15:35:04 +0100 |
---|---|---|
committer | UbitUmarov | 2018-10-20 15:35:04 +0100 |
commit | d1d370ada347054d7b6278fe224933a1dfd2f0b1 (patch) | |
tree | c5eca921cfb3ca179d666f85b76721546c07f94c /OpenSim/Region | |
parent | change ossl error report and NPC create error handling (diff) | |
download | opensim-SC-d1d370ada347054d7b6278fe224933a1dfd2f0b1.zip opensim-SC-d1d370ada347054d7b6278fe224933a1dfd2f0b1.tar.gz opensim-SC-d1d370ada347054d7b6278fe224933a1dfd2f0b1.tar.bz2 opensim-SC-d1d370ada347054d7b6278fe224933a1dfd2f0b1.tar.xz |
avoid a null ref during jenkins tests
Diffstat (limited to 'OpenSim/Region')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs index 4859038..eb424a3 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs | |||
@@ -265,7 +265,8 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
265 | ChatTypeEnum.Shout, ScriptBaseClass.DEBUG_CHANNEL, m_host.ParentGroup.RootPart.AbsolutePosition, m_host.Name, m_host.UUID, true); | 265 | ChatTypeEnum.Shout, ScriptBaseClass.DEBUG_CHANNEL, m_host.ParentGroup.RootPart.AbsolutePosition, m_host.Name, m_host.UUID, true); |
266 | 266 | ||
267 | IWorldComm wComm = m_ScriptEngine.World.RequestModuleInterface<IWorldComm>(); | 267 | IWorldComm wComm = m_ScriptEngine.World.RequestModuleInterface<IWorldComm>(); |
268 | wComm.DeliverMessage(ChatTypeEnum.Shout, ScriptBaseClass.DEBUG_CHANNEL, m_host.Name, m_host.UUID, message); | 268 | if(wComm != null) |
269 | wComm.DeliverMessage(ChatTypeEnum.Shout, ScriptBaseClass.DEBUG_CHANNEL, m_host.Name, m_host.UUID, message); | ||
269 | } | 270 | } |
270 | 271 | ||
271 | // Returns if OSSL is enabled. Throws a script exception if OSSL is not allowed.. | 272 | // Returns if OSSL is enabled. Throws a script exception if OSSL is not allowed.. |