[Telepathy-commits] [telepathy-salut/master] Cope with gibber_file_transfer_new_from_stanza failing.
Jonny Lamb
jonny.lamb at collabora.co.uk
Fri Nov 21 03:46:24 PST 2008
Signed-off-by: Jonny Lamb <jonny.lamb at collabora.co.uk>
---
src/salut-file-channel.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/src/salut-file-channel.c b/src/salut-file-channel.c
index 3388ae7..51da3b6 100644
--- a/src/salut-file-channel.c
+++ b/src/salut-file-channel.c
@@ -837,6 +837,9 @@ salut_file_channel_received_file_offer (SalutFileChannel *self,
salut_xmpp_connection_manager_take_connection (
self->priv->xmpp_connection_manager , conn);
ft = gibber_file_transfer_new_from_stanza (stanza, conn);
+
+ g_return_if_fail (ft);
+
g_signal_connect (ft, "error", G_CALLBACK (error_cb), self);
DEBUG ("Received file offer with id '%s'", ft->id);
--
1.5.6.5
More information about the Telepathy-commits
mailing list