From 341664eabc20573da5254b95b23bd6f66e62baf1 Mon Sep 17 00:00:00 2001 From: Sean Dague Date: Wed, 2 Apr 2008 18:58:57 +0000 Subject: from krtaylor Fixe for Mantis 821 --- OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'OpenSim/Region/ScriptEngine') diff --git a/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs b/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs index 749761e..391fcf9 100644 --- a/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs +++ b/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs @@ -450,10 +450,13 @@ namespace OpenSim.Region.ScriptEngine.Common public LLUUID uuidDetectedKey(int number) { LSL_Types.list SenseList = m_ScriptEngine.m_ASYNCLSLCommandManager.m_SensorRepeat.GetSensorList(m_localID, m_itemID); - if ((number >= 0) && (number < SenseList.Length)) + if (SenseList != null) { - LLUUID SensedUUID = (LLUUID)SenseList.Data[number]; - return SensedUUID; + if ((number >= 0) && (number < SenseList.Length)) + { + LLUUID SensedUUID = (LLUUID)SenseList.Data[number]; + return SensedUUID; + } } return LLUUID.Zero; } -- cgit v1.1