[evolution/webkit] Bug #600013 - Crash in mail_reader_message_loaded_cb



commit 8a0cd5e6a4d6213013c8d899f9d0d954dec235a4
Author: Milan Crha <mcrha redhat com>
Date:   Wed Jan 12 13:57:36 2011 +0100

    Bug #600013 - Crash in mail_reader_message_loaded_cb

 mail/e-mail-reader.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/mail/e-mail-reader.c b/mail/e-mail-reader.c
index 3d3c4b3..b9a3b8b 100644
--- a/mail/e-mail-reader.c
+++ b/mail/e-mail-reader.c
@@ -2606,6 +2606,12 @@ mail_reader_message_loaded_cb (CamelFolder *folder,
 	formatter = e_mail_reader_get_formatter (reader);
 	message_list = e_mail_reader_get_message_list (reader);
 
+	if (!message_list) {
+		/* for cases where message fetching took so long that
+		   user closed the message window before this was called */
+		goto exit;
+	}
+
 	shell_backend = E_SHELL_BACKEND (backend);
 	shell = e_shell_backend_get_shell (shell_backend);
 	shell_settings = e_shell_get_shell_settings (shell);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]