Review Request 126060: Fix krunner crash when open "/"
Xuetian Weng
wengxt at gmail.com
Fri Nov 13 22:12:57 UTC 2015
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/126060/
-----------------------------------------------------------
Review request for Plasma and Sebastian Kügler.
Bugs: 355290
https://bugs.kde.org/show_bug.cgi?id=355290
Repository: plasma-workspace
Description
-------
Code crashes when calling dirNames.last(), since dirNames itself is empty when path is "/".
Add a condition to check if dirNames is empty and return right away.
Diffs
-----
runners/locations/locationrunner.cpp cc12965
Diff: https://git.reviewboard.kde.org/r/126060/diff/
Testing
-------
No more crash.
Thanks,
Xuetian Weng
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20151113/658e54d1/attachment-0001.html>
More information about the Plasma-devel
mailing list