aboutsummaryrefslogtreecommitdiffstats
path: root/camel/providers
diff options
context:
space:
mode:
Diffstat (limited to 'camel/providers')
-rw-r--r--camel/providers/imap/camel-imap-folder.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/camel/providers/imap/camel-imap-folder.c b/camel/providers/imap/camel-imap-folder.c
index d1b29a800d..89082fded2 100644
--- a/camel/providers/imap/camel-imap-folder.c
+++ b/camel/providers/imap/camel-imap-folder.c
@@ -1850,7 +1850,12 @@ imap_update_summary (CamelFolder *folder, int exists,
g_datalist_clear (&data);
continue;
}
+
mi = messages->pdata[seq - first];
+ if (mi == NULL) {
+ g_datalist_clear (&data);
+ continue;
+ }
uid = g_datalist_get_data (&data, "UID");
if (uid)