aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim
diff options
context:
space:
mode:
authorMelanie Thielker2010-07-20 00:46:39 +0200
committerMelanie Thielker2010-07-20 00:46:39 +0200
commit54da64acacec9703b95f375aab58890766cc16a4 (patch)
tree5c49c110590fc5f0756e212420d904e5ac0225f7 /OpenSim
parentAdd a state change method to the Async commands handler to allow timers (diff)
downloadopensim-SC_OLD-54da64acacec9703b95f375aab58890766cc16a4.zip
opensim-SC_OLD-54da64acacec9703b95f375aab58890766cc16a4.tar.gz
opensim-SC_OLD-54da64acacec9703b95f375aab58890766cc16a4.tar.bz2
opensim-SC_OLD-54da64acacec9703b95f375aab58890766cc16a4.tar.xz
Remove exception badness in the LSL Types. Who ever came up with that.....?!
Diffstat (limited to 'OpenSim')
-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 }