From 84e34a9fa8f7f3d4991b68ffbdd9cd65f2022aa6 Mon Sep 17 00:00:00 2001 From: Xavier Claessens Date: Fri, 19 Sep 2008 13:43:25 +0000 Subject: Check if the return value of tp_contact_list_get_group() is !=NULL. Fixes bug #548668 svn path=/trunk/; revision=1470 --- libempathy/empathy-tp-contact-list.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libempathy/empathy-tp-contact-list.c b/libempathy/empathy-tp-contact-list.c index 685b13ef4..4f1534bd0 100644 --- a/libempathy/empathy-tp-contact-list.c +++ b/libempathy/empathy-tp-contact-list.c @@ -1007,7 +1007,9 @@ tp_contact_list_add_to_group (EmpathyContactList *list, tp_group = tp_contact_list_get_group (EMPATHY_TP_CONTACT_LIST (list), group); - empathy_tp_group_add_member (tp_group, contact, ""); + if (tp_group) { + empathy_tp_group_add_member (tp_group, contact, ""); + } } static void -- cgit v1.2.3