diff options
author | Sjoerd Simons <sjoerd.simons@collabora.co.uk> | 2009-07-16 22:38:46 +0800 |
---|---|---|
committer | Sjoerd Simons <sjoerd.simons@collabora.co.uk> | 2009-07-16 22:38:54 +0800 |
commit | 9309c89a6ce064223dc2879d5b61baf69472a334 (patch) | |
tree | c31c19760673dac65b95638e26b256f3c73f74ce | |
parent | e700d8f398b27a98ef24476e3909570aa91c329a (diff) | |
download | gsoc2013-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.c | 8 |
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 (); |