[empathy] Check if the remote-contact is actually there before putting it on the list



commit cbe0d0b4ecbffe71334fa7c25ff49612c521cf3d
Author: Sjoerd Simons <sjoerd simons collabora co uk>
Date:   Sun Sep 13 15:13:11 2009 +0100

    Check if the remote-contact is actually there before putting it on the list

 libempathy/empathy-tp-chat.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/libempathy/empathy-tp-chat.c b/libempathy/empathy-tp-chat.c
index a64f06a..a8b0eeb 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;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]