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