diff options
-rw-r--r-- | telepathy-glib/channel-contacts.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/telepathy-glib/channel-contacts.c b/telepathy-glib/channel-contacts.c index 011733363..2146cf381 100644 --- a/telepathy-glib/channel-contacts.c +++ b/telepathy-glib/channel-contacts.c @@ -1093,7 +1093,12 @@ append_contacts (GPtrArray *contacts, g_hash_table_iter_init (&iter, table); while (g_hash_table_iter_next (&iter, NULL, &value)) - g_ptr_array_add (contacts, value); + { + if (value == NULL) + continue; + + g_ptr_array_add (contacts, value); + } } void |