]> git.0d.be Git - empathy.git/commitdiff
UOA mc plugin: Don't crash if auth failure is removed on an unknown IM service
authorXavier Claessens <xavier.claessens@collabora.co.uk>
Wed, 12 Sep 2012 08:42:30 +0000 (10:42 +0200)
committerXavier Claessens <xavier.claessens@collabora.co.uk>
Wed, 12 Sep 2012 08:45:50 +0000 (10:45 +0200)
ubuntu-online-accounts/mc-plugin/mcp-account-manager-uoa.c

index 8414a3408237d47126e355db92f91cc551aca494..0e1705bda002e0d4238ed2902eca823596283886 100644 (file)
@@ -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);