[evolution-mapi/gnome-3-0] Bug #634486 - Crash when receiving message without body



commit ce8561198e62dc8cd4c2ba47b988f9e4cb040f36
Author: Milan Crha <mcrha redhat com>
Date:   Wed May 4 14:52:31 2011 +0200

    Bug #634486 - Crash when receiving message without body

 src/libexchangemapi/exchange-mapi-mail-utils.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/libexchangemapi/exchange-mapi-mail-utils.c b/src/libexchangemapi/exchange-mapi-mail-utils.c
index 1d27bae..5a4c06f 100644
--- a/src/libexchangemapi/exchange-mapi-mail-utils.c
+++ b/src/libexchangemapi/exchange-mapi-mail-utils.c
@@ -907,7 +907,7 @@ mapi_mail_item_to_mime_message (ExchangeMapiConnection *conn, MailItem *item)
 									inline_attachs);
 	} else if (build_related) {
 		multipart_body = mapi_mime_build_multipart_related (item,
-								    item->msg.body_parts->data,
+								    item->msg.body_parts ? item->msg.body_parts->data : NULL,
 								    inline_attachs);
 	} else { /* Simple multipart/mixed */
 		CamelMimePart *part;



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