diff options
Diffstat (limited to 'mail')
-rw-r--r-- | 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 3d3c4b3ffe..b9a3b8b584 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); |