From 5d4aca9915e38194a22b27028d99509f09f7c222 Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Fri, 28 Oct 2011 10:17:28 +0200 Subject: get_tp_contact_for_chat: deal with tp_channel_borrow_connection() returning NULL https://bugzilla.gnome.org/show_bug.cgi?id=662873 --- src/empathy-invite-participant-dialog.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/empathy-invite-participant-dialog.c b/src/empathy-invite-participant-dialog.c index f905c827e..ece86f1b6 100644 --- a/src/empathy-invite-participant-dialog.c +++ b/src/empathy-invite-participant-dialog.c @@ -114,6 +114,8 @@ get_tp_contact_for_chat (EmpathyInviteParticipantDialog *self, TpConnection *chat_conn; chat_conn = tp_channel_borrow_connection (TP_CHANNEL (self->priv->tp_chat)); + if (chat_conn == NULL) + return NULL; return empathy_get_tp_contact_for_individual (individual, chat_conn); } -- cgit v1.2.3