diff options
-rw-r--r-- | mail/mail-format.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/mail/mail-format.c b/mail/mail-format.c index 9b9dffb4fa..5918c7ad6b 100644 --- a/mail/mail-format.c +++ b/mail/mail-format.c @@ -2269,9 +2269,12 @@ mail_get_message_body (CamelDataWrapper *data, gboolean want_plain, gboolean cit if (header_content_type_is (mime_type, "text", "*") || header_content_type_is (mime_type, "message", "*")) { bytes = mail_format_get_data_wrapper_text (data, NULL); - g_byte_array_append (bytes, "", 1); - text = bytes->data; - g_byte_array_free (bytes, FALSE); + + if (bytes) { + g_byte_array_append (bytes, "", 1); + text = bytes->data; + g_byte_array_free (bytes, FALSE); + } if (text && !header_content_type_is (mime_type, "text", "html")) { char *html; |