]> git.0d.be Git - empathy.git/commitdiff
Check if the return value of tp_contact_list_get_group() is !=NULL. Fixes bug #548668
authorXavier Claessens <xclaesse@src.gnome.org>
Fri, 19 Sep 2008 13:43:25 +0000 (13:43 +0000)
committerXavier Claessens <xclaesse@src.gnome.org>
Fri, 19 Sep 2008 13:43:25 +0000 (13:43 +0000)
svn path=/trunk/; revision=1470

libempathy/empathy-tp-contact-list.c

index 685b13ef47b49ae999002f1667ec772c84e2e3d6..4f1534bd02e726ef1dc9ad2921a6954801d63899 100644 (file)
@@ -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