From cbe0d0b4ecbffe71334fa7c25ff49612c521cf3d Mon Sep 17 00:00:00 2001 From: Sjoerd Simons Date: Sun, 13 Sep 2009 15:13:11 +0100 Subject: Check if the remote-contact is actually there before putting it on the list --- libempathy/empathy-tp-chat.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libempathy/empathy-tp-chat.c') diff --git a/libempathy/empathy-tp-chat.c b/libempathy/empathy-tp-chat.c index a64f06a2f..a8b0eeb6f 100644 --- a/libempathy/empathy-tp-chat.c +++ b/libempathy/empathy-tp-chat.c @@ -164,7 +164,8 @@ tp_chat_get_members (EmpathyContactList *list) g_list_foreach (members, (GFunc) g_object_ref, NULL); } else { members = g_list_prepend (members, g_object_ref (priv->user)); - members = g_list_prepend (members, g_object_ref (priv->remote_contact)); + if (priv->remote_contact != NULL) + members = g_list_prepend (members, g_object_ref (priv->remote_contact)); } return members; -- cgit v1.2.3