aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy/empathy-tp-group.c
diff options
context:
space:
mode:
Diffstat (limited to 'libempathy/empathy-tp-group.c')
-rw-r--r--libempathy/empathy-tp-group.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libempathy/empathy-tp-group.c b/libempathy/empathy-tp-group.c
index f09d8ce1b..f5cbb7081 100644
--- a/libempathy/empathy-tp-group.c
+++ b/libempathy/empathy-tp-group.c
@@ -966,7 +966,7 @@ empathy_tp_group_get_invitation (EmpathyTpGroup *group,
contact = priv->remote_pendings->data;
}
- if (remote_contact) {
+ if (remote_contact && contact) {
*remote_contact = g_object_ref (contact);
}