From b32dcc6913a1b82064af3885bcde3e979bfe8830 Mon Sep 17 00:00:00 2001 From: Melanie Date: Thu, 16 Dec 2010 21:01:38 +0100 Subject: [PATCH] Fix notecards that end with an embedded object causing an exception --- OpenSim/Framework/SLUtil.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 +}