From 9309c89a6ce064223dc2879d5b61baf69472a334 Mon Sep 17 00:00:00 2001 From: Sjoerd Simons Date: Thu, 16 Jul 2009 15:38:46 +0100 Subject: Ignore a log when the account it isn't found --- libempathy/empathy-log-store-empathy.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'libempathy') diff --git a/libempathy/empathy-log-store-empathy.c b/libempathy/empathy-log-store-empathy.c index 6fedf121a..56dc70fa4 100644 --- a/libempathy/empathy-log-store-empathy.c +++ b/libempathy/empathy-log-store-empathy.c @@ -426,9 +426,15 @@ log_store_empathy_get_messages_for_file (EmpathyLogStore *self, /* Get the account from the filename */ hit = log_store_empathy_search_hit_new (self, filename); - account = g_object_ref (hit->account); + + if (hit->account != NULL) + account = g_object_ref (hit->account); + empathy_log_manager_search_hit_free (hit); + if (hit->account == NULL) + return NULL; + /* Create parser. */ ctxt = xmlNewParserCtxt (); -- cgit v1.2.3