From: Sergio Villar SenĂ­n Date: Wed, 20 Jan 2010 09:55:42 +0000 (+0100) Subject: Fixes a crash creating new messages X-Git-Tag: 3.2.11~9 X-Git-Url: http://git.maemo.org/git/?p=modest;a=commitdiff_plain;h=785b875268eefe1b1ac5af5360c17b5f769baa34 Fixes a crash creating new messages --- diff --git a/src/modest-tny-msg.c b/src/modest-tny-msg.c index e76be4d..e237efb 100644 --- a/src/modest-tny-msg.c +++ b/src/modest-tny-msg.c @@ -224,7 +224,7 @@ add_html_body_part (TnyMsg *msg, /* Create the stream */ html_body_stream = TNY_STREAM (tny_camel_mem_stream_new_with_buffer - (body, strlen(body))); + (body, (body) ? strlen(body) : 0)); /* Create body part if needed */ html_body_part = modest_formatter_create_body_part (NULL, msg);