Remove exception badness in the LSL Types. Who ever came up with that.....?!

avinationmerge
Melanie Thielker 2010-07-20 00:46:39 +02:00
parent c263fc54ac
commit 54da64acac
1 changed files with 8 additions and 8 deletions

View File

@ -615,10 +615,10 @@ namespace OpenSim.Region.ScriptEngine.Shared
{ {
int la = -1; int la = -1;
int lb = -1; int lb = -1;
try { la = a.Length; } if (a != null)
catch (NullReferenceException) { } la = a.Length;
try { lb = b.Length; } if (b != null)
catch (NullReferenceException) { } lb = b.Length;
return la == lb; return la == lb;
} }
@ -627,10 +627,10 @@ namespace OpenSim.Region.ScriptEngine.Shared
{ {
int la = -1; int la = -1;
int lb = -1; int lb = -1;
try { la = a.Length; } if (a != null)
catch (NullReferenceException) { } la = a.Length;
try {lb = b.Length;} if (b != null)
catch (NullReferenceException) { } lb = b.Length;
return la != lb; return la != lb;
} }