aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2009-07-05 23:29:09 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2009-07-07 23:15:23 +0800
commit3b848301b06feddc82cbf667876ae502b95bbe6e (patch)
tree91e85f3de3f4d5dd77c13a76d00ee7aae71f20f2 /libempathy
parenta2315ff447331af909d5bef8d2e26c7e56fd9184 (diff)
downloadgsoc2013-empathy-3b848301b06feddc82cbf667876ae502b95bbe6e.tar
gsoc2013-empathy-3b848301b06feddc82cbf667876ae502b95bbe6e.tar.gz
gsoc2013-empathy-3b848301b06feddc82cbf667876ae502b95bbe6e.tar.bz2
gsoc2013-empathy-3b848301b06feddc82cbf667876ae502b95bbe6e.tar.lz
gsoc2013-empathy-3b848301b06feddc82cbf667876ae502b95bbe6e.tar.xz
gsoc2013-empathy-3b848301b06feddc82cbf667876ae502b95bbe6e.tar.zst
gsoc2013-empathy-3b848301b06feddc82cbf667876ae502b95bbe6e.zip
empathy_contact_manager_can_add: raise an error if connection is NULL
Diffstat (limited to 'libempathy')
-rw-r--r--libempathy/empathy-contact-manager.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libempathy/empathy-contact-manager.c b/libempathy/empathy-contact-manager.c
index 7af2bd349..059382b60 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)