summaryrefslogtreecommitdiff
path: root/telepathy-glib/account.c
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2012-08-07 10:07:50 +0200
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2012-08-07 10:08:42 +0200
commit1af70f08af087ec452fdd0fc17d8dd2d3391994c (patch)
tree9a045666d598d40e05c52069917e2ce27a686f28 /telepathy-glib/account.c
parent153f645a95456c10aa0c90dd084246a7c7798bf0 (diff)
downloadtelepathy-glib-1af70f08af087ec452fdd0fc17d8dd2d3391994c.tar.gz
tp_account_dup_storage_identifier_variant: deal with storage_identifier being NULL
https://bugs.freedesktop.org/show_bug.cgi?id=53201
Diffstat (limited to 'telepathy-glib/account.c')
-rw-r--r--telepathy-glib/account.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/telepathy-glib/account.c b/telepathy-glib/account.c
index ba8669384..805afa547 100644
--- a/telepathy-glib/account.c
+++ b/telepathy-glib/account.c
@@ -3962,6 +3962,9 @@ tp_account_dup_storage_identifier_variant (TpAccount *self)
{
g_return_val_if_fail (TP_IS_ACCOUNT (self), NULL);
+ if (self->priv->storage_identifier == NULL)
+ return NULL;
+
return g_variant_ref_sink (dbus_g_value_build_g_variant (
self->priv->storage_identifier));
}