[gnome-contacts/wip/sorted: 7/8] sorted: Fix null check in update_separator



commit e31fb4588e5d75c40100c06238d7ed8a290c1099
Author: Alexander Larsson <alexl redhat com>
Date:   Thu Feb 23 16:46:09 2012 +0100

    sorted: Fix null check in update_separator

 src/contacts-sorted.vala |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/contacts-sorted.vala b/src/contacts-sorted.vala
index 7045f40..40e6b1a 100644
--- a/src/contacts-sorted.vala
+++ b/src/contacts-sorted.vala
@@ -239,8 +239,8 @@ public class Contacts.Sorted : Container {
     return iter;
   }
 
-  private void update_separator (SequenceIter<ChildInfo?> iter, bool update_if_exist) {
-    if (iter.is_end ())
+  private void update_separator (SequenceIter<ChildInfo?>? iter, bool update_if_exist) {
+    if (iter == null || iter.is_end ())
       return;
 
     unowned ChildInfo? info = iter.get ();



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]