From d7622cbedc3a4423ce5192f959851ba360c46fde Mon Sep 17 00:00:00 2001 From: Melanie Date: Thu, 16 Dec 2010 21:01:38 +0100 Subject: Fix notecards that end with an embedded object causing an exception --- OpenSim/Framework/SLUtil.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'OpenSim/Framework/SLUtil.cs') diff --git a/OpenSim/Framework/SLUtil.cs b/OpenSim/Framework/SLUtil.cs index 9941a7f..b337e03 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 +} -- cgit v1.1