[empathy] get_tp_contact_for_chat: deal with tp_channel_borrow_connection() returning NULL
- From: Guillaume Desmottes <gdesmott src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [empathy] get_tp_contact_for_chat: deal with tp_channel_borrow_connection() returning NULL
- Date: Mon, 12 Dec 2011 15:41:49 +0000 (UTC)
commit 5d4aca9915e38194a22b27028d99509f09f7c222
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date: Fri Oct 28 10:17:28 2011 +0200
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 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/empathy-invite-participant-dialog.c b/src/empathy-invite-participant-dialog.c
index f905c82..ece86f1 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);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]