aboutsummaryrefslogtreecommitdiffstats
path: root/src/empathy-accounts-dialog.c
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2009-11-10 22:06:05 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2009-11-10 22:06:07 +0800
commitb8ad0668749e8f1da95ce8060aac26905d8a8782 (patch)
treef4f25c69a342ded98f2c36caa6b9b5c7d3aacb9b /src/empathy-accounts-dialog.c
parent79823a12c3ddd74cea17164db13e16a21dd81ab3 (diff)
downloadgsoc2013-empathy-b8ad0668749e8f1da95ce8060aac26905d8a8782.tar
gsoc2013-empathy-b8ad0668749e8f1da95ce8060aac26905d8a8782.tar.gz
gsoc2013-empathy-b8ad0668749e8f1da95ce8060aac26905d8a8782.tar.bz2
gsoc2013-empathy-b8ad0668749e8f1da95ce8060aac26905d8a8782.tar.lz
gsoc2013-empathy-b8ad0668749e8f1da95ce8060aac26905d8a8782.tar.xz
gsoc2013-empathy-b8ad0668749e8f1da95ce8060aac26905d8a8782.tar.zst
gsoc2013-empathy-b8ad0668749e8f1da95ce8060aac26905d8a8782.zip
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.
Diffstat (limited to 'src/empathy-accounts-dialog.c')
-rw-r--r--src/empathy-accounts-dialog.c2
1 files changed, 1 insertions, 1 deletions
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