diff options
author | Xavier Claessens <xclaesse@src.gnome.org> | 2008-09-19 21:43:25 +0800 |
---|---|---|
committer | Xavier Claessens <xclaesse@src.gnome.org> | 2008-09-19 21:43:25 +0800 |
commit | 84e34a9fa8f7f3d4991b68ffbdd9cd65f2022aa6 (patch) | |
tree | 2225d1636e20633dbacd2ff17165f71c950d31f8 /libempathy | |
parent | 2295380f8c530f0e714c3f10c7e2e3ab1b9b3e9c (diff) | |
download | gsoc2013-empathy-84e34a9fa8f7f3d4991b68ffbdd9cd65f2022aa6.tar gsoc2013-empathy-84e34a9fa8f7f3d4991b68ffbdd9cd65f2022aa6.tar.gz gsoc2013-empathy-84e34a9fa8f7f3d4991b68ffbdd9cd65f2022aa6.tar.bz2 gsoc2013-empathy-84e34a9fa8f7f3d4991b68ffbdd9cd65f2022aa6.tar.lz gsoc2013-empathy-84e34a9fa8f7f3d4991b68ffbdd9cd65f2022aa6.tar.xz gsoc2013-empathy-84e34a9fa8f7f3d4991b68ffbdd9cd65f2022aa6.tar.zst gsoc2013-empathy-84e34a9fa8f7f3d4991b68ffbdd9cd65f2022aa6.zip |
Check if the return value of tp_contact_list_get_group() is !=NULL. Fixes bug #548668
svn path=/trunk/; revision=1470
Diffstat (limited to 'libempathy')
-rw-r--r-- | libempathy/empathy-tp-contact-list.c | 4 |
1 files changed, 3 insertions, 1 deletions
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 |