[empathy] can_add_contact_to_account: early return if connection is NULL (#587817)
- From: Guillaume Desmottes <gdesmott src gnome org>
- To: svn-commits-list gnome org
- Subject: [empathy] can_add_contact_to_account: early return if connection is NULL (#587817)
- Date: Tue, 7 Jul 2009 15:16:04 +0000 (UTC)
commit d19d09875e8cf3d77bc464c07d2bb70354b9ae50
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date: Tue Jul 7 14:01:31 2009 +0100
can_add_contact_to_account: early return if connection is NULL (#587817)
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 c1cca3e..ef100a3 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]