aboutsummaryrefslogtreecommitdiffstats
path: root/mail/message-thread.c
diff options
context:
space:
mode:
Diffstat (limited to 'mail/message-thread.c')
-rw-r--r--mail/message-thread.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/mail/message-thread.c b/mail/message-thread.c
index 3218d7ff28..c35e39f470 100644
--- a/mail/message-thread.c
+++ b/mail/message-thread.c
@@ -421,6 +421,11 @@ thread_messages(CamelFolder *folder, GPtrArray *uids)
const CamelMessageInfo *mi;
mi = camel_folder_get_message_info (folder, uids->pdata[i]);
+ if (mi == NULL) {
+ g_warning("Folder doesn't contain uid %s", uids->pdata[i]);
+ continue;
+ }
+
if (mi->message_id) {
d(printf("doing : %s\n", mi->message_id));
c = g_hash_table_lookup(id_table, mi->message_id);