From 844b932834beb6f15d454d14662ca7719bb28981 Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Fri, 9 Dec 2011 10:54:26 +0100 Subject: 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 --- libempathy-gtk/empathy-individual-store-channel.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libempathy-gtk/empathy-individual-store-channel.c') 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)); -- cgit v1.2.3