diff options
-rw-r--r-- | mail/ChangeLog | 4 | ||||
-rw-r--r-- | mail/message-thread.c | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog index 674ac9c5b1..c6579a49fe 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -1,3 +1,7 @@ +2000-07-19 Jeffrey Stedfast <fejj@helixcode.com> + + * message-thread.c (thread_messages): What if message info is NULL? + 2000-07-16 Jeffrey Stedfast <fejj@helixcode.com> * folder-browser.c, component-factory.c: Initial code to support diff --git a/mail/message-thread.c b/mail/message-thread.c index 66bce15584..7970a06e80 100644 --- a/mail/message-thread.c +++ b/mail/message-thread.c @@ -419,7 +419,7 @@ thread_messages(CamelFolder *folder, GPtrArray *uids) for (i=0;i<uids->len;i++) { const CamelMessageInfo *mi; mi = camel_folder_get_message_info (folder, uids->pdata[i]); - if (mi->message_id) { + if (mi && mi->message_id) { d(printf("doing : %s\n", mi->message_id)); c = g_hash_table_lookup(id_table, mi->message_id); if (c) { @@ -460,7 +460,7 @@ thread_messages(CamelFolder *folder, GPtrArray *uids) } d(printf("\n")); } else { - printf("No message id???\n"); + printf("Either info is NULL or no message id???\n"); /* ?? */ } } |