diff options
author | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2013-09-24 14:03:06 +0100 |
---|---|---|
committer | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2013-09-24 14:32:10 +0100 |
commit | fe4885a66bb1edba8521329674af6765fa785e77 (patch) | |
tree | a429743f8f939399e12a61632e19fd6bbb3076a5 | |
parent | c0fa33df2a7af1888e487676f6b03f4bf445b299 (diff) | |
download | telepathy-glib-fe4885a66bb1edba8521329674af6765fa785e77.tar.gz |
TpConnection: don't crash if a broken CM has no Groups property
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=54500
Reviewed-by: Guillaume Desmottes <guillaume.desmottes@collabora.co.uk>
-rw-r--r-- | telepathy-glib/connection-contact-list.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/telepathy-glib/connection-contact-list.c b/telepathy-glib/connection-contact-list.c index f00f2308c..517481976 100644 --- a/telepathy-glib/connection-contact-list.c +++ b/telepathy-glib/connection-contact-list.c @@ -614,7 +614,7 @@ prepare_contact_groups_cb (TpProxy *proxy, self->priv->contact_groups->len - 1); groups = tp_asv_get_boxed (properties, "Groups", G_TYPE_STRV); - for (iter = groups; *iter != NULL; iter++) + for (iter = groups; iter != NULL && *iter != NULL; iter++) { DEBUG (" %s", *iter); g_ptr_array_add (self->priv->contact_groups, g_strdup (*iter)); |