Commit 5384ec09 authored by Harald Sitter's avatar Harald Sitter 🏳️‍🌈
Browse files

make sure disk is not null before acessing it

there is a nullptr dereference on sentry that isn't quite clear how it
can happen, make sure it's not the disk.

https://errors-eval.kde.org/organizations/kde/issues/327
parent 8505a7bb
Pipeline #247831 passed with stage
in 1 minute and 3 seconds
......@@ -458,6 +458,7 @@ void DiskList::deleteAllMountedAt(const QString &mountpoint)
for (auto it = disksIteratorBegin(); it != disksIteratorEnd();) {
DiskEntry *disk = *it;
Q_ASSERT(disk);
if (disk->mountPoint() == mountpoint) {
it = disks->erase(it);
disk->deleteLater();
......
Supports Markdown
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