aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-folder-summary.c
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2001-01-18 10:03:04 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2001-01-18 10:03:04 +0800
commita37006af0ac5ff13e3825189485d1e5edee1720e (patch)
tree69bbdabfb9935548106197cbf40872d5263b357c /camel/camel-folder-summary.c
parent229b57ab1a55e361c74cf6a3b69ae4617d7bf7e3 (diff)
downloadgsoc2013-evolution-a37006af0ac5ff13e3825189485d1e5edee1720e.tar
gsoc2013-evolution-a37006af0ac5ff13e3825189485d1e5edee1720e.tar.gz
gsoc2013-evolution-a37006af0ac5ff13e3825189485d1e5edee1720e.tar.bz2
gsoc2013-evolution-a37006af0ac5ff13e3825189485d1e5edee1720e.tar.lz
gsoc2013-evolution-a37006af0ac5ff13e3825189485d1e5edee1720e.tar.xz
gsoc2013-evolution-a37006af0ac5ff13e3825189485d1e5edee1720e.tar.zst
gsoc2013-evolution-a37006af0ac5ff13e3825189485d1e5edee1720e.zip
Make sure that the message-info is non-null before we go accessing inner
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. svn path=/trunk/; revision=7608
Diffstat (limited to 'camel/camel-folder-summary.c')
-rw-r--r--camel/camel-folder-summary.c5
1 files changed, 4 insertions, 1 deletions
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);
}