* another g_return_... stomped
authorArne Zellentin <arne@kernelconcepts.de>
Mon, 12 Jun 2006 13:46:29 +0000 (13:46 +0000)
committerArne Zellentin <arne@kernelconcepts.de>
Mon, 12 Jun 2006 13:46:29 +0000 (13:46 +0000)
pmo-trunk-r233

src/modest-tny-msg-view.c

index dd25060..675abb2 100644 (file)
@@ -410,7 +410,9 @@ attachments_as_html(ModestTnyMsgView *self, TnyMsgIface *msg)
                filename = "";
                content_type = tny_msg_mime_part_iface_get_content_type(
                                                                                TNY_MSG_MIME_PART_IFACE(attachment->data));
-               g_return_val_if_fail(content_type, NULL);
+               if (!content_type)
+                       continue;
+
                if ((strcmp("image/jpeg", content_type) == 0) ||
                        (strcmp("image/gif",  content_type) == 0)) {
                        filename = tny_msg_mime_part_iface_get_filename(