diff options
author | Jeffrey Stedfast <fejj@ximian.com> | 2003-04-09 00:41:06 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2003-04-09 00:41:06 +0800 |
commit | 74a2482d4a4c9349642b063ecd6f46f77757a746 (patch) | |
tree | d62e9b5cb6aa267e84b79fbdf75e03d5bda91a77 | |
parent | fe0bc3328d2e18b3d5cd71876e3d8a5bf98ab4ae (diff) | |
download | gsoc2013-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
-rw-r--r-- | mail/ChangeLog | 6 | ||||
-rw-r--r-- | mail/mail-callbacks.c | 2 |
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); |