diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2012-08-07 10:07:50 +0200 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2012-08-07 10:08:42 +0200 |
commit | 1af70f08af087ec452fdd0fc17d8dd2d3391994c (patch) | |
tree | 9a045666d598d40e05c52069917e2ce27a686f28 /telepathy-glib/account.c | |
parent | 153f645a95456c10aa0c90dd084246a7c7798bf0 (diff) | |
download | telepathy-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.c | 3 |
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)); } |