From 74a2482d4a4c9349642b063ecd6f46f77757a746 Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Tue, 8 Apr 2003 16:41:06 +0000 Subject: Add a check for a NULL uid here. Don't see how it can happen, but it seems 2003-04-08 Jeffrey Stedfast * mail-callbacks.c (do_view_message): Add a check for a NULL uid here. Don't see how it can happen, but it seems to have for Aaron. Anyways, this should fix bug #40904. svn path=/trunk/; revision=20762 --- mail/ChangeLog | 6 ++++++ mail/mail-callbacks.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/mail/ChangeLog b/mail/ChangeLog index 4a3066761e..a1c03ee6d8 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -1,3 +1,9 @@ +2003-04-08 Jeffrey Stedfast + + * mail-callbacks.c (do_view_message): Add a check for a NULL uid + here. Don't see how it can happen, but it seems to have for + Aaron. Anyways, this should fix bug #40904. + 2003-04-08 Dan Winship * mail-config.glade: Remove color specs from the druid so it will diff --git a/mail/mail-callbacks.c b/mail/mail-callbacks.c index d1fbb74957..c51a73c27e 100644 --- a/mail/mail-callbacks.c +++ b/mail/mail-callbacks.c @@ -3121,7 +3121,7 @@ do_view_message (CamelFolder *folder, const char *uid, CamelMimeMessage *message if (FOLDER_BROWSER_IS_DESTROYED (fb)) return; - if (message) { + if (message && uid) { GtkWidget *mb; camel_folder_set_message_flags (folder, uid, CAMEL_MESSAGE_SEEN, CAMEL_MESSAGE_SEEN); -- cgit v1.2.3