diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2009-07-05 23:29:09 +0800 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2009-07-07 23:15:23 +0800 |
commit | 3b848301b06feddc82cbf667876ae502b95bbe6e (patch) | |
tree | 91e85f3de3f4d5dd77c13a76d00ee7aae71f20f2 /libempathy/empathy-contact-manager.c | |
parent | a2315ff447331af909d5bef8d2e26c7e56fd9184 (diff) | |
download | gsoc2013-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/empathy-contact-manager.c')
-rw-r--r-- | 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 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) |