aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy
diff options
context:
space:
mode:
Diffstat (limited to 'libempathy')
-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