From a3c10ee7b1801aa50293bf85bf845f5110005bf1 Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Thu, 15 Mar 2012 16:03:20 +0100 Subject: create_dialog_content: check if the TpConnection is still valid tp_connection_get_contacts_by_handle() will raise a warning if the TpConnection has been invalidated. https://bugzilla.gnome.org/show_bug.cgi?id=671035 --- src/empathy-accounts-dialog.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/empathy-accounts-dialog.c b/src/empathy-accounts-dialog.c index 847e1a55e..0bcf0ed21 100644 --- a/src/empathy-accounts-dialog.c +++ b/src/empathy-accounts-dialog.c @@ -821,7 +821,8 @@ account_dialog_create_dialog_content (EmpathyAccountsDialog *dialog, if (account != NULL) conn = tp_account_get_connection (account); - if (conn != NULL) + if (conn != NULL && + tp_proxy_get_invalidated (conn) == NULL) { empathy_tp_contact_factory_get_from_handle (conn, tp_connection_get_self_handle (conn), -- cgit v1.2.3