From 00a119d8f895506897c86165c5b7592c3ff4f787 Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Mon, 15 Mar 2010 10:24:14 +0100 Subject: contact_selector_dialog_account_changed_cb: cope with tp_account_get_connection being NULL --- libempathy-gtk/empathy-contact-selector-dialog.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'libempathy-gtk/empathy-contact-selector-dialog.c') diff --git a/libempathy-gtk/empathy-contact-selector-dialog.c b/libempathy-gtk/empathy-contact-selector-dialog.c index 3428b0513..056890b26 100644 --- a/libempathy-gtk/empathy-contact-selector-dialog.c +++ b/libempathy-gtk/empathy-contact-selector-dialog.c @@ -110,6 +110,9 @@ contact_selector_dialog_account_changed_cb (GtkWidget *widget, EmpathyTpContactList *contact_list; connection = tp_account_get_connection (priv->filter_account); + if (connection == NULL) + return; + contact_list = empathy_contact_manager_get_list ( priv->contact_manager, connection); -- cgit v1.2.3