D14585: avoid crash in MonitorPrivate::emitItemsNotification accessing empty list
Martin Koller
noreply at phabricator.kde.org
Fri Aug 3 19:19:20 BST 2018
mkoller created this revision.
mkoller added a reviewer: dvratil.
Restricted Application added a project: KDE PIM.
Restricted Application added a subscriber: kde-pim.
mkoller requested review of this revision.
REVISION SUMMARY
It seems b3b61aaff4217c5942819f7848136c861a0f501a <https://phabricator.kde.org/R165:b3b61aaff4217c5942819f7848136c861a0f501a> introduced a problem by accessing an empty list with first()
Attached patch fixes that, although I don't know if the logic is correct and the function should return false in this case.
REPOSITORY
R165 Akonadi
REVISION DETAIL
https://phabricator.kde.org/D14585
AFFECTED FILES
monitor_p.cpp
To: mkoller, dvratil
Cc: kde-pim, dvasin, rodsevich, winterz, vkrause, mlaurent, knauss, dvratil
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-pim/attachments/20180803/eb39b7dd/attachment.html>
More information about the kde-pim
mailing list