aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorxclaesse <xclaesse@4ee84921-47dd-4033-b63a-18d7a039a3e4>2008-09-19 21:43:25 +0800
committerxclaesse <xclaesse@4ee84921-47dd-4033-b63a-18d7a039a3e4>2008-09-19 21:43:25 +0800
commit338e529aad99f2aeeb4b9993db300009787f9554 (patch)
tree2225d1636e20633dbacd2ff17165f71c950d31f8
parentf53df433881e94628894f66cc0523aefe6bfc7c7 (diff)
downloadgsoc2013-empathy-338e529aad99f2aeeb4b9993db300009787f9554.tar
gsoc2013-empathy-338e529aad99f2aeeb4b9993db300009787f9554.tar.gz
gsoc2013-empathy-338e529aad99f2aeeb4b9993db300009787f9554.tar.bz2
gsoc2013-empathy-338e529aad99f2aeeb4b9993db300009787f9554.tar.lz
gsoc2013-empathy-338e529aad99f2aeeb4b9993db300009787f9554.tar.xz
gsoc2013-empathy-338e529aad99f2aeeb4b9993db300009787f9554.tar.zst
gsoc2013-empathy-338e529aad99f2aeeb4b9993db300009787f9554.zip
Check if the return value of tp_contact_list_get_group() is !=NULL. Fixes bug #548668
git-svn-id: svn+ssh://svn.gnome.org/svn/empathy/trunk@1470 4ee84921-47dd-4033-b63a-18d7a039a3e4
-rw-r--r--libempathy/empathy-tp-contact-list.c4
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