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-08 10:59:54 +0200 |
commit | 21d9f38246c9c11307e9b170ebf0e8589909faa3 (patch) | |
tree | b7b2ac8c39e90660f7f4895495a2c4e3df0775a4 | |
parent | 7e57a020c356778ef0ee009abab734b385cacc4f (diff) |
tp_account_dup_storage_identifier_variant: deal with storage_identifier being NULL
https://bugs.freedesktop.org/show_bug.cgi?id=53201
-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 005a29d8b..781481c27 100644 --- a/telepathy-glib/account.c +++ b/telepathy-glib/account.c @@ -3876,6 +3876,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)); } |