aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2003-04-09 00:41:06 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2003-04-09 00:41:06 +0800
commit74a2482d4a4c9349642b063ecd6f46f77757a746 (patch)
treed62e9b5cb6aa267e84b79fbdf75e03d5bda91a77 /mail
parentfe0bc3328d2e18b3d5cd71876e3d8a5bf98ab4ae (diff)
downloadgsoc2013-evolution-74a2482d4a4c9349642b063ecd6f46f77757a746.tar.gz
gsoc2013-evolution-74a2482d4a4c9349642b063ecd6f46f77757a746.tar.zst
gsoc2013-evolution-74a2482d4a4c9349642b063ecd6f46f77757a746.zip
Add a check for a NULL uid here. Don't see how it can happen, but it seems
2003-04-08 Jeffrey Stedfast <fejj@ximian.com> * 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
Diffstat (limited to 'mail')
-rw-r--r--mail/ChangeLog6
-rw-r--r--mail/mail-callbacks.c2
2 files changed, 7 insertions, 1 deletions
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 <fejj@ximian.com>
+
+ * 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 <danw@ximian.com>
* 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);