diff options
-rw-r--r-- | camel/ChangeLog | 6 | ||||
-rw-r--r-- | camel/camel-folder-summary.c | 5 |
2 files changed, 10 insertions, 1 deletions
diff --git a/camel/ChangeLog b/camel/ChangeLog index 62a970b36f..e485d8f443 100644 --- a/camel/ChangeLog +++ b/camel/ChangeLog @@ -1,5 +1,11 @@ 2001-01-17 Jeffrey Stedfast <fejj@ximian.com> + * camel-folder-summary.c (camel_folder_summary_load): Make sure + that the message-info is non-null before we go accessing inner + parts of it and/or adding it to the summary array. I may not have + handled the error correctly, but it does seem to work + correctly. If NotZed could double-check this it'd be great. + * providers/smtp/camel-smtp-transport.c (get_smtp_error_string): New smtp error-code to string mapping function. (smtp_connect): Use the new error->string function for reporting diff --git a/camel/camel-folder-summary.c b/camel/camel-folder-summary.c index 452dc02b77..8142029a15 100644 --- a/camel/camel-folder-summary.c +++ b/camel/camel-folder-summary.c @@ -536,7 +536,10 @@ camel_folder_summary_load(CamelFolderSummary *s) /* FIXME: check returns */ for (i=0;i<s->saved_count;i++) { mi = ((CamelFolderSummaryClass *)(CAMEL_OBJECT_GET_CLASS(s)))->message_info_load(s, in); - + + if (!mi) + continue; + if (s->build_content) { mi->content = perform_content_info_load(s, in); } |