[empathy] empathy_account_settings_has_account: cope with priv->account being NULL
- From: Guillaume Desmottes <gdesmott src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [empathy] empathy_account_settings_has_account: cope with priv->account being NULL
- Date: Wed, 24 Feb 2010 15:12:10 +0000 (UTC)
commit d66105db6105b9ffc3ede09b2513f1243e0a426d
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date: Wed Feb 24 15:05:15 2010 +0000
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 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/libempathy/empathy-account-settings.c b/libempathy/empathy-account-settings.c
index 40df9a8..78b1445 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));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]