[empathy] empathy_contact_manager_can_add: raise an error if connection is NULL



commit 3b848301b06feddc82cbf667876ae502b95bbe6e
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date:   Sun Jul 5 16:29:09 2009 +0100

    empathy_contact_manager_can_add: raise an error if connection is NULL

 libempathy/empathy-contact-manager.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/libempathy/empathy-contact-manager.c b/libempathy/empathy-contact-manager.c
index 7af2bd3..059382b 100644
--- a/libempathy/empathy-contact-manager.c
+++ b/libempathy/empathy-contact-manager.c
@@ -535,6 +535,7 @@ empathy_contact_manager_can_add (EmpathyContactManager *manager,
 	EmpathyTpContactList      *list;
 
 	g_return_val_if_fail (EMPATHY_IS_CONTACT_MANAGER (manager), FALSE);
+	g_return_val_if_fail (connection != NULL, FALSE);
 
 	list = g_hash_table_lookup (priv->lists, connection);
 	if (list == NULL)



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