aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk/empathy-contact-dialogs.c
diff options
context:
space:
mode:
authorCosimo Cecchi <cosimoc@gnome.org>2009-07-31 17:44:12 +0800
committerCosimo Cecchi <cosimoc@gnome.org>2009-07-31 17:46:39 +0800
commit8d2d494e21dd76251ce3fff3301bf007eb514f53 (patch)
tree249737aef0a387ad608544e17f2db494f84ad99e /libempathy-gtk/empathy-contact-dialogs.c
parentbf6b5979152190e78ca913c6cfd0b91e204c60fd (diff)
downloadgsoc2013-empathy-8d2d494e21dd76251ce3fff3301bf007eb514f53.tar
gsoc2013-empathy-8d2d494e21dd76251ce3fff3301bf007eb514f53.tar.gz
gsoc2013-empathy-8d2d494e21dd76251ce3fff3301bf007eb514f53.tar.bz2
gsoc2013-empathy-8d2d494e21dd76251ce3fff3301bf007eb514f53.tar.lz
gsoc2013-empathy-8d2d494e21dd76251ce3fff3301bf007eb514f53.tar.xz
gsoc2013-empathy-8d2d494e21dd76251ce3fff3301bf007eb514f53.tar.zst
gsoc2013-empathy-8d2d494e21dd76251ce3fff3301bf007eb514f53.zip
Don't try to lookup NULL connections
Diffstat (limited to 'libempathy-gtk/empathy-contact-dialogs.c')
-rw-r--r--libempathy-gtk/empathy-contact-dialogs.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libempathy-gtk/empathy-contact-dialogs.c b/libempathy-gtk/empathy-contact-dialogs.c
index 5b11ddc2e..4252ae019 100644
--- a/libempathy-gtk/empathy-contact-dialogs.c
+++ b/libempathy-gtk/empathy-contact-dialogs.c
@@ -335,6 +335,10 @@ can_add_contact_to_account (EmpathyAccount *account,
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);
g_object_unref (contact_manager);