aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSjoerd Simons <sjoerd.simons@collabora.co.uk>2009-07-16 22:38:46 +0800
committerSjoerd Simons <sjoerd.simons@collabora.co.uk>2009-07-16 22:38:54 +0800
commit9309c89a6ce064223dc2879d5b61baf69472a334 (patch)
treec31c19760673dac65b95638e26b256f3c73f74ce
parente700d8f398b27a98ef24476e3909570aa91c329a (diff)
downloadgsoc2013-empathy-9309c89a6ce064223dc2879d5b61baf69472a334.tar
gsoc2013-empathy-9309c89a6ce064223dc2879d5b61baf69472a334.tar.gz
gsoc2013-empathy-9309c89a6ce064223dc2879d5b61baf69472a334.tar.bz2
gsoc2013-empathy-9309c89a6ce064223dc2879d5b61baf69472a334.tar.lz
gsoc2013-empathy-9309c89a6ce064223dc2879d5b61baf69472a334.tar.xz
gsoc2013-empathy-9309c89a6ce064223dc2879d5b61baf69472a334.tar.zst
gsoc2013-empathy-9309c89a6ce064223dc2879d5b61baf69472a334.zip
Ignore a log when the account it isn't found
-rw-r--r--libempathy/empathy-log-store-empathy.c8
1 files changed, 7 insertions, 1 deletions
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 ();