Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 8fc867c0 authored by Allen Winter's avatar Allen Winter

dav/resource/davgroupwareresource.cpp - check for valid Akonadi item

parent 5ae763f5
......@@ -1070,8 +1070,10 @@ void DavGroupwareResource::onItemChangedFinished(KJob *job)
if (isRemoval) {
Akonadi::Item removedItem = job->property("removedItem").value<Akonadi::Item>();
cache->removeEtag(removedItem.remoteId());
changeProcessed();
if (removedItem.isValid()) {
cache->removeEtag(removedItem.remoteId());
changeProcessed();
}
}
if (davItem.etag().isEmpty()) {
......@@ -1345,4 +1347,3 @@ void DavGroupwareResource::setCollectionIcon(Akonadi::Collection &collection)
}
AKONADI_RESOURCE_MAIN(DavGroupwareResource)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment