aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@helixcode.com>2000-07-20 01:34:08 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2000-07-20 01:34:08 +0800
commita273803fab7a94128cc6cd8fc780827c2b5c1364 (patch)
tree7430f30b0232064877695ba22977ccc7871c4913 /mail
parent19f73a38d8c47974a1da01b2ebbd257b768a2076 (diff)
downloadgsoc2013-evolution-a273803fab7a94128cc6cd8fc780827c2b5c1364.tar.gz
gsoc2013-evolution-a273803fab7a94128cc6cd8fc780827c2b5c1364.tar.zst
gsoc2013-evolution-a273803fab7a94128cc6cd8fc780827c2b5c1364.zip
What if message info is NULL?
2000-07-19 Jeffrey Stedfast <fejj@helixcode.com> * message-thread.c (thread_messages): What if message info is NULL? svn path=/trunk/; revision=4222
Diffstat (limited to 'mail')
-rw-r--r--mail/ChangeLog4
-rw-r--r--mail/message-thread.c4
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");
/* ?? */
}
}