aboutsummaryrefslogtreecommitdiffstats
path: root/em-format
diff options
context:
space:
mode:
Diffstat (limited to 'em-format')
-rw-r--r--em-format/em-format.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/em-format/em-format.c b/em-format/em-format.c
index a6b01f4b9a..9d3cb7c1f9 100644
--- a/em-format/em-format.c
+++ b/em-format/em-format.c
@@ -1445,7 +1445,7 @@ emf_multipart_alternative(EMFormat *emf, CamelStream *stream, CamelMimePart *par
/* is it correct to use the passed in *part here? */
part = camel_multipart_get_part(mp, i);
- if (!part)
+ if (!part || !camel_mime_part_get_content_size (part))
continue;
type = camel_mime_part_get_content_type (part);