File fix-hotmail-contacts-crash.patch of Package kdepim-runtime

Fix crash when synchronizing hotmail.com contacts

--- a/resources/ews/ewsfetchitemsjob.cpp	2022-01-08 16:00:18.000000000 +0100
+++ b/resources/ews/ewsfetchitemsjob.cpp	2022-02-07 12:32:03.220141699 +0100
@@ -310,7 +310,7 @@
         auto id(ewsItem[EwsItemFieldItemId].value<EwsId>());
         QHash<QString, Item>::iterator it = itemHash.find(id.id());
         EwsItemType type = ewsItem.internalType();
-        if (type == EwsItemTypeUnknown) {
+        if (type == EwsItemTypeItem || type == EwsItemTypeUnknown) {
             /* Ignore unknown items. */
             continue;
         }
openSUSE Build Service is sponsored by