From 46897aae3a6c68af4d3a96f4275cb0c8c50b5f2f Mon Sep 17 00:00:00 2001 From: Milan Crha Date: Mon, 27 Feb 2012 13:44:28 +0100 Subject: Avoid crash when formatting broken message (part of bug #663221) --- mail/em-format-html.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'mail') diff --git a/mail/em-format-html.c b/mail/em-format-html.c index ae2782d568..35fca48c81 100644 --- a/mail/em-format-html.c +++ b/mail/em-format-html.c @@ -1927,6 +1927,8 @@ efh_text_plain (EMFormat *emf, flags = efh->text_html_flags; dw = camel_medium_get_content ((CamelMedium *) part); + if (!dw) + return; /* Check for RFC 2646 flowed text. */ if (camel_content_type_is(dw->mime_type, "text", "plain") -- cgit