[empathy] empathy_accounts_dialog_show: check if priv->cms is not NULL before using it
- From: Guillaume Desmottes <gdesmott src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [empathy] empathy_accounts_dialog_show: check if priv->cms is not NULL before using it
- Date: Tue, 10 Nov 2009 14:09:12 +0000 (UTC)
commit b8ad0668749e8f1da95ce8060aac26905d8a8782
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date: Tue Nov 10 14:06:05 2009 +0000
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 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/empathy-accounts-dialog.c b/src/empathy-accounts-dialog.c
index 75ed75d..d2161a2 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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]