aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2009-07-07 21:01:31 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2009-07-07 23:15:23 +0800
commitd19d09875e8cf3d77bc464c07d2bb70354b9ae50 (patch)
treeb8dcfebaaaee0a742c0ee363e98ebc5ea1233c64
parent3b848301b06feddc82cbf667876ae502b95bbe6e (diff)
downloadgsoc2013-empathy-d19d09875e8cf3d77bc464c07d2bb70354b9ae50.tar
gsoc2013-empathy-d19d09875e8cf3d77bc464c07d2bb70354b9ae50.tar.gz
gsoc2013-empathy-d19d09875e8cf3d77bc464c07d2bb70354b9ae50.tar.bz2
gsoc2013-empathy-d19d09875e8cf3d77bc464c07d2bb70354b9ae50.tar.lz
gsoc2013-empathy-d19d09875e8cf3d77bc464c07d2bb70354b9ae50.tar.xz
gsoc2013-empathy-d19d09875e8cf3d77bc464c07d2bb70354b9ae50.tar.zst
gsoc2013-empathy-d19d09875e8cf3d77bc464c07d2bb70354b9ae50.zip
can_add_contact_to_account: early return if connection is NULL (#587817)
-rw-r--r--libempathy-gtk/empathy-contact-dialogs.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libempathy-gtk/empathy-contact-dialogs.c b/libempathy-gtk/empathy-contact-dialogs.c
index c1cca3e2b..ef100a3b7 100644
--- a/libempathy-gtk/empathy-contact-dialogs.c
+++ b/libempathy-gtk/empathy-contact-dialogs.c
@@ -336,6 +336,8 @@ can_add_contact_to_account (EmpathyAccount *account,
gboolean result;
connection = empathy_account_get_connection (account);
+ if (connection == NULL)
+ return FALSE;
contact_manager = empathy_contact_manager_dup_singleton ();
result = empathy_contact_manager_can_add (contact_manager, connection);