From 21d9f38246c9c11307e9b170ebf0e8589909faa3 Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Tue, 7 Aug 2012 10:07:50 +0200 Subject: tp_account_dup_storage_identifier_variant: deal with storage_identifier being NULL https://bugs.freedesktop.org/show_bug.cgi?id=53201 --- telepathy-glib/account.c | 3 +++ 1 file changed, 3 insertions(+) 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)); } -- cgit v1.2.3