aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/ScriptEngine')
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs16
1 files changed, 8 insertions, 8 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs b/OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs
index c9049e2..bab5156 100644
--- a/OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs
@@ -615,10 +615,10 @@ namespace OpenSim.Region.ScriptEngine.Shared
615 { 615 {
616 int la = -1; 616 int la = -1;
617 int lb = -1; 617 int lb = -1;
618 try { la = a.Length; } 618 if (a != null)
619 catch (NullReferenceException) { } 619 la = a.Length;
620 try { lb = b.Length; } 620 if (b != null)
621 catch (NullReferenceException) { } 621 lb = b.Length;
622 622
623 return la == lb; 623 return la == lb;
624 } 624 }
@@ -627,10 +627,10 @@ namespace OpenSim.Region.ScriptEngine.Shared
627 { 627 {
628 int la = -1; 628 int la = -1;
629 int lb = -1; 629 int lb = -1;
630 try { la = a.Length; } 630 if (a != null)
631 catch (NullReferenceException) { } 631 la = a.Length;
632 try {lb = b.Length;} 632 if (b != null)
633 catch (NullReferenceException) { } 633 lb = b.Length;
634 634
635 return la != lb; 635 return la != lb;
636 } 636 }