[gnome-contacts/wip/sorted: 7/8] sorted: Fix null check in update_separator
- From: Alexander Larsson <alexl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-contacts/wip/sorted: 7/8] sorted: Fix null check in update_separator
- Date: Wed, 9 May 2012 10:11:07 +0000 (UTC)
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]