aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy
diff options
context:
space:
mode:
authorEmilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk>2011-06-09 18:17:00 +0800
committerEmilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk>2011-06-09 18:37:55 +0800
commit669b6782b2bb1c7275092f5923b8930cc2849c98 (patch)
treee15103feba5c7f3d34a8cf43a363905e6905ab37 /libempathy
parent36c30139b96a31bd00d81b73f83d3e5dc8f06bf2 (diff)
downloadgsoc2013-empathy-669b6782b2bb1c7275092f5923b8930cc2849c98.tar
gsoc2013-empathy-669b6782b2bb1c7275092f5923b8930cc2849c98.tar.gz
gsoc2013-empathy-669b6782b2bb1c7275092f5923b8930cc2849c98.tar.bz2
gsoc2013-empathy-669b6782b2bb1c7275092f5923b8930cc2849c98.tar.lz
gsoc2013-empathy-669b6782b2bb1c7275092f5923b8930cc2849c98.tar.xz
gsoc2013-empathy-669b6782b2bb1c7275092f5923b8930cc2849c98.tar.zst
gsoc2013-empathy-669b6782b2bb1c7275092f5923b8930cc2849c98.zip
Handle unknown event types gracefully
Diffstat (limited to 'libempathy')
-rw-r--r--libempathy/empathy-message.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libempathy/empathy-message.c b/libempathy/empathy-message.c
index 32e205a41..d97539ffd 100644
--- a/libempathy/empathy-message.c
+++ b/libempathy/empathy-message.c
@@ -343,6 +343,9 @@ empathy_message_from_tpl_log_event (TplEvent *logevent)
else
body = g_strdup_printf (_("Call from %s"),
tpl_entity_get_alias (tpl_event_get_sender (logevent)));
+ } else {
+ /* Unknown event type */
+ return NULL;
}
receiver = tpl_event_get_receiver (logevent);