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.
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;
if (disk->mountPoint() == mountpoint) {
it = disks->erase(it);
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