Do a proper null check to avoid the overloaded operator == trap

integration
Melanie 2012-08-15 23:58:39 +02:00
parent e286a95d76
commit 9995421df1
1 changed files with 1 additions and 1 deletions

View File

@ -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);