diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2011-12-09 17:54:26 +0800 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2011-12-14 17:52:33 +0800 |
commit | 844b932834beb6f15d454d14662ca7719bb28981 (patch) | |
tree | b852e2185fa342d35584724bd6d6cf81be6ffdd7 /libempathy-gtk/empathy-individual-store-channel.c | |
parent | eebfb2b90332782fc3ff79386e9a4808d277337b (diff) | |
download | gsoc2013-empathy-844b932834beb6f15d454d14662ca7719bb28981.tar.gz gsoc2013-empathy-844b932834beb6f15d454d14662ca7719bb28981.tar.zst gsoc2013-empathy-844b932834beb6f15d454d14662ca7719bb28981.zip |
Deal with empathy_create_individual_from_tp_contact() returning NULL
Shouldn't really happen in practice but better to be safe than sorry.
https://bugzilla.gnome.org/show_bug.cgi?id=665853
Diffstat (limited to 'libempathy-gtk/empathy-individual-store-channel.c')
-rw-r--r-- | libempathy-gtk/empathy-individual-store-channel.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libempathy-gtk/empathy-individual-store-channel.c b/libempathy-gtk/empathy-individual-store-channel.c index 75284602b..76ff74e25 100644 --- a/libempathy-gtk/empathy-individual-store-channel.c +++ b/libempathy-gtk/empathy-individual-store-channel.c @@ -82,6 +82,8 @@ add_members (EmpathyIndividualStoreChannel *self, continue; individual = empathy_create_individual_from_tp_contact (contact); + if (individual == NULL) + return; DEBUG ("%s joined channel %s", tp_contact_get_identifier (contact), tp_proxy_get_object_path (self->priv->channel)); |