kolabformat/v2helpers.h

Christian Mollekopf mollekopf at kolabsys.com
Thu Aug 23 16:32:56 CEST 2012


 kolabformat/v2helpers.h |    1 +
 1 file changed, 1 insertion(+)

New commits:
commit 5f80365528753f834135cc8aa48d1679b5bbbdbe
Author: Christian Mollekopf <mollekopf at kolabsys.com>
Date:   Thu Aug 23 16:31:56 2012 +0200

    Fix for https://bugs.kde.org/show_bug.cgi?id=305454. Thanks for the Patch Laurent.

diff --git a/kolabformat/v2helpers.h b/kolabformat/v2helpers.h
index f93f9a1..29a23c3 100644
--- a/kolabformat/v2helpers.h
+++ b/kolabformat/v2helpers.h
@@ -77,6 +77,7 @@ QImage getPicture(const QString &pictureAttachmentName, const KMime::Message::Pt
     KMime::Content *imgContent = Mime::findContentByName(data, pictureAttachmentName/*"kolab-picture.png"*/, type);
     if (!imgContent) {
         Warning() << "could not find picture: " << pictureAttachmentName;
+        return QImage();
     }
     QByteArray imgData = imgContent->decodedContent();
     QBuffer buffer(&imgData);





More information about the commits mailing list