diff --git a/SparkleShare/SparkleController.cs b/SparkleShare/SparkleController.cs index b0639a38..db996dab 100644 --- a/SparkleShare/SparkleController.cs +++ b/SparkleShare/SparkleController.cs @@ -400,16 +400,18 @@ namespace SparkleShare { if (change_set.SupportsNotes) { comments = ""; - change_set.Notes.Sort ((x, y) => (x.Timestamp.CompareTo (y.Timestamp))); - - foreach (SparkleNote note in change_set.Notes) { - comments += "" + - " " + - " " + - "" + - "" + - " " + - ""; + if (change_set.Notes != null) { + change_set.Notes.Sort ((x, y) => (x.Timestamp.CompareTo (y.Timestamp))); + + foreach (SparkleNote note in change_set.Notes) { + comments += "" + + " " + + " " + + "" + + "" + + " " + + ""; + } } comments += "
" + note.UserName + "" + note.Timestamp.ToString ("d MMM") + "
" + note.Body + "
" + note.UserName + "" + note.Timestamp.ToString ("d MMM") + "
" + note.Body + "
";