aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXavier Claessens <xavier.claessens@collabora.co.uk>2012-09-12 16:42:30 +0800
committerXavier Claessens <xavier.claessens@collabora.co.uk>2012-09-12 16:45:50 +0800
commit5676e2a343460465e4439449e4d6d834f21ccdbd (patch)
tree4298094c1cf7ead798aa921ddff57743d07995e1
parente9e42e26b106c9ae053c1d1c5edda4ee8751ca42 (diff)
downloadgsoc2013-empathy-5676e2a343460465e4439449e4d6d834f21ccdbd.tar
gsoc2013-empathy-5676e2a343460465e4439449e4d6d834f21ccdbd.tar.gz
gsoc2013-empathy-5676e2a343460465e4439449e4d6d834f21ccdbd.tar.bz2
gsoc2013-empathy-5676e2a343460465e4439449e4d6d834f21ccdbd.tar.lz
gsoc2013-empathy-5676e2a343460465e4439449e4d6d834f21ccdbd.tar.xz
gsoc2013-empathy-5676e2a343460465e4439449e4d6d834f21ccdbd.tar.zst
gsoc2013-empathy-5676e2a343460465e4439449e4d6d834f21ccdbd.zip
UOA mc plugin: Don't crash if auth failure is removed on an unknown IM service
-rw-r--r--ubuntu-online-accounts/mc-plugin/mcp-account-manager-uoa.c9
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 8414a3408..0e1705bda 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);