diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2009-07-07 21:01:31 +0800 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2009-07-07 23:15:23 +0800 |
commit | d19d09875e8cf3d77bc464c07d2bb70354b9ae50 (patch) | |
tree | b8dcfebaaaee0a742c0ee363e98ebc5ea1233c64 /libempathy-gtk | |
parent | 3b848301b06feddc82cbf667876ae502b95bbe6e (diff) | |
download | gsoc2013-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)
Diffstat (limited to 'libempathy-gtk')
-rw-r--r-- | libempathy-gtk/empathy-contact-dialogs.c | 2 |
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); |