summaryrefslogtreecommitdiff
path: root/kolabformat/v2helpers.h
diff options
context:
space:
mode:
Diffstat (limited to 'kolabformat/v2helpers.h')
-rw-r--r--kolabformat/v2helpers.h1
1 files changed, 1 insertions, 0 deletions
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);