diff options
Diffstat (limited to 'camel/camel-folder-thread.c')
-rw-r--r-- | camel/camel-folder-thread.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/camel/camel-folder-thread.c b/camel/camel-folder-thread.c index 2e84e73767..8f55452c98 100644 --- a/camel/camel-folder-thread.c +++ b/camel/camel-folder-thread.c @@ -538,7 +538,7 @@ camel_folder_thread_messages_new(CamelFolder *folder, GPtrArray *uids) /* remove any phantom nodes, this could possibly be put in group_root_set()? */ c = (CamelFolderThreadNode *)&head; - while (c->next) { + while (c && c->next) { CamelFolderThreadNode *scan, *newtop; child = c->next; |