[Bug 305454] Crash on "Update address book folder" (kolabproxy/akonadi)

Laurent Montel montel at kde.org
Tue Aug 21 07:13:28 BST 2012


https://bugs.kde.org/show_bug.cgi?id=305454

Laurent Montel <montel at kde.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever confirmed|0                           |1

--- Comment #2 from Laurent Montel <montel at kde.org> ---
Add patch here too

diff --git a/kolabformat/v2helpers.h b/kolabformat/v2helpers.h
index f93f9a1..dcc8563 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);
@@ -268,4 +269,4 @@ QStringList readLegacyDictionaryConfiguration(const 
QByteArray &xmlData, QString

 }

-#endif
\ No newline at end of file
+#endif

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.



More information about the Kdepim-bugs mailing list