diff --git a/OpenSim/Framework/SLUtil.cs b/OpenSim/Framework/SLUtil.cs index 9941a7f147..b337e034fa 100644 --- a/OpenSim/Framework/SLUtil.cs +++ b/OpenSim/Framework/SLUtil.cs @@ -340,7 +340,7 @@ namespace OpenSim.Framework int count = -1; - while (count < len) + while (count < len && idx < input.Length) { // int l = input[idx].Length; string ln = input[idx]; @@ -375,4 +375,4 @@ namespace OpenSim.Framework return output; } } -} \ No newline at end of file +}