summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon McVittie <simon.mcvittie@collabora.co.uk>2013-09-24 14:03:06 +0100
committerSimon McVittie <simon.mcvittie@collabora.co.uk>2013-09-24 14:32:10 +0100
commitfe4885a66bb1edba8521329674af6765fa785e77 (patch)
treea429743f8f939399e12a61632e19fd6bbb3076a5
parentc0fa33df2a7af1888e487676f6b03f4bf445b299 (diff)
downloadtelepathy-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.c2
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));