From d66105db6105b9ffc3ede09b2513f1243e0a426d Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Wed, 24 Feb 2010 15:05:15 +0000 Subject: empathy_account_settings_has_account: cope with priv->account being NULL priv->account is not garantee to be set so empathy_account_settings_has_account shouldn't assume it is (#610942). --- libempathy/empathy-account-settings.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libempathy/empathy-account-settings.c b/libempathy/empathy-account-settings.c index 40df9a802..78b14456e 100644 --- a/libempathy/empathy-account-settings.c +++ b/libempathy/empathy-account-settings.c @@ -1245,6 +1245,9 @@ empathy_account_settings_has_account (EmpathyAccountSettings *settings, priv = GET_PRIV (settings); + if (priv->account == NULL) + return FALSE; + account_path = tp_proxy_get_object_path (TP_PROXY (account)); priv_account_path = tp_proxy_get_object_path (TP_PROXY (priv->account)); -- cgit v1.2.3