From f257b67d7c10798371daa959adb131a5fa7b87dd Mon Sep 17 00:00:00 2001 From: Hylke Bons Date: Wed, 19 May 2010 10:13:58 +0100 Subject: [PATCH] allow repos with less than 25 commits --- SparkleShare/SparkleWindow.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SparkleShare/SparkleWindow.cs b/SparkleShare/SparkleWindow.cs index 30347e4d..995af582 100644 --- a/SparkleShare/SparkleWindow.cs +++ b/SparkleShare/SparkleWindow.cs @@ -137,7 +137,7 @@ namespace SparkleShare { Array.Reverse (Lines); TreeIter Iter; - for (int i = 0; i < 25; i++) { + for (int i = 0; i < 25 && i < Lines.Length; i++) { string Line = Lines [i]; if (Line.Contains (SelectedEmail)) {