From b8ad0668749e8f1da95ce8060aac26905d8a8782 Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Tue, 10 Nov 2009 14:06:05 +0000 Subject: empathy_accounts_dialog_show: check if priv->cms is not NULL before using it priv->cms is initalized in accounts_dialog_accounts_setup once the account manager is ready. So it's not garanteed to be set in empathy_accounts_dialog_show anymore. --- src/empathy-accounts-dialog.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/empathy-accounts-dialog.c') diff --git a/src/empathy-accounts-dialog.c b/src/empathy-accounts-dialog.c index 75ed75db9..d2161a27f 100644 --- a/src/empathy-accounts-dialog.c +++ b/src/empathy-accounts-dialog.c @@ -1834,7 +1834,7 @@ empathy_accounts_dialog_show (GtkWindow *parent, if (selected_account) { - if (empathy_connection_managers_is_ready (priv->cms)) + if (priv->cms != NULL && empathy_connection_managers_is_ready (priv->cms)) accounts_dialog_set_selected_account (dialog, selected_account); else /* save the selection to set it later when the cms -- cgit v1.2.3