From 9995421df118e1270f289ea82451e0c7b6dd5b40 Mon Sep 17 00:00:00 2001 From: Melanie Date: Wed, 15 Aug 2012 23:58:39 +0200 Subject: Do a proper null check to avoid the overloaded operator == trap --- OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'OpenSim/Region') diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs index 55567d1..7e48659 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs @@ -10780,7 +10780,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api LSL_List remaining = SetPrimParams(obj, rules); - while (remaining != null && remaining.Length > 2) + while ((object)remaining != null && remaining.Length > 2) { LSL_Integer newLink = remaining.GetLSLIntegerItem(0); LSL_List newrules = remaining.GetSublist(1, -1); -- cgit v1.1