[empathy] UOA mc plugin: Don't crash if auth failure is removed on an unknown IM service



commit 5676e2a343460465e4439449e4d6d834f21ccdbd
Author: Xavier Claessens <xavier claessens collabora co uk>
Date:   Wed Sep 12 10:42:30 2012 +0200

    UOA mc plugin: Don't crash if auth failure is removed on an unknown IM service

 .../mc-plugin/mcp-account-manager-uoa.c            |    9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/ubuntu-online-accounts/mc-plugin/mcp-account-manager-uoa.c b/ubuntu-online-accounts/mc-plugin/mcp-account-manager-uoa.c
index 8414a34..0e1705b 100644
--- a/ubuntu-online-accounts/mc-plugin/mcp-account-manager-uoa.c
+++ b/ubuntu-online-accounts/mc-plugin/mcp-account-manager-uoa.c
@@ -684,10 +684,13 @@ failure_removed_cb (EmpathyWebcredentialsMonitor *monitor,
       AgAccountService *service = ag_account_service_new (account, l->data);
       gchar *account_name = _service_dup_tp_account_name (service);
 
-      DEBUG ("Reconnect account %s", account_name);
+      if (account_name != NULL)
+        {
+          DEBUG ("Reconnect account %s", account_name);
 
-      mcp_account_storage_emit_reconnect (MCP_ACCOUNT_STORAGE (self),
-          account_name);
+          mcp_account_storage_emit_reconnect (MCP_ACCOUNT_STORAGE (self),
+              account_name);
+        }
 
       g_free (account_name);
       g_object_unref (service);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]