aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2011-10-28 16:17:28 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2011-12-12 23:41:01 +0800
commit5d4aca9915e38194a22b27028d99509f09f7c222 (patch)
treea5bb10276c93795035f2dbad5aef6dc86b5bd43b /src
parent34d91c3420c3401cca5a40b9ff481dd3584ac8cb (diff)
downloadgsoc2013-empathy-5d4aca9915e38194a22b27028d99509f09f7c222.tar
gsoc2013-empathy-5d4aca9915e38194a22b27028d99509f09f7c222.tar.gz
gsoc2013-empathy-5d4aca9915e38194a22b27028d99509f09f7c222.tar.bz2
gsoc2013-empathy-5d4aca9915e38194a22b27028d99509f09f7c222.tar.lz
gsoc2013-empathy-5d4aca9915e38194a22b27028d99509f09f7c222.tar.xz
gsoc2013-empathy-5d4aca9915e38194a22b27028d99509f09f7c222.tar.zst
gsoc2013-empathy-5d4aca9915e38194a22b27028d99509f09f7c222.zip
get_tp_contact_for_chat: deal with tp_channel_borrow_connection() returning NULL
https://bugzilla.gnome.org/show_bug.cgi?id=662873
Diffstat (limited to 'src')
-rw-r--r--src/empathy-invite-participant-dialog.c2
1 files changed, 2 insertions, 0 deletions
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);
}