[empathy] Cope with tpl_event_get_receiver() returning NULL
- From: Emilio Pozuelo Monfort <epm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [empathy] Cope with tpl_event_get_receiver() returning NULL
- Date: Fri, 10 Jun 2011 12:00:18 +0000 (UTC)
commit c8beb5910b162e26e94c13a57d7d3213f9a3ef84
Author: Emilio Pozuelo Monfort <emilio pozuelo collabora co uk>
Date: Fri Jun 10 12:47:56 2011 +0100
Cope with tpl_event_get_receiver() returning NULL
libempathy-gtk/empathy-log-window.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/libempathy-gtk/empathy-log-window.c b/libempathy-gtk/empathy-log-window.c
index ef004b4..eee79ff 100644
--- a/libempathy-gtk/empathy-log-window.c
+++ b/libempathy-gtk/empathy-log-window.c
@@ -611,6 +611,9 @@ is_same_confroom (TplEvent *e1,
TplEntity *receiver2 = tpl_event_get_receiver (e2);
TplEntity *room1, *room2;
+ if (receiver1 == NULL || receiver2 == NULL)
+ return FALSE;
+
if (tpl_entity_get_entity_type (sender1) == TPL_ENTITY_ROOM)
room1 = sender1;
else if (tpl_entity_get_entity_type (receiver1) == TPL_ENTITY_ROOM)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]