https://bugs.kde.org/show_bug.cgi?id=502141

--- Comment #1 from Andrius Štikonas <andr...@stikonas.eu> ---
Could you see if the following patch helps?


diff --git a/src/plugins/sfdisk/sfdiskbackend.cpp
b/src/plugins/sfdisk/sfdiskbackend.cpp
index e47c4e5..2fe99dd 100644
--- a/src/plugins/sfdisk/sfdiskbackend.cpp
+++ b/src/plugins/sfdisk/sfdiskbackend.cpp
@@ -515,6 +515,8 @@ bool SfdiskBackend::updateDevicePartitionTable(Device &d,
const QJsonObject &jso
 */
 void SfdiskBackend::readSectorsUsed(const Device& d, Partition& p, const
QString& mountPoint)
 {
+    if (p.isFileSystemNullptr())
+        return;
     if (!mountPoint.isEmpty() && p.fileSystem().type() !=
FileSystem::Type::LinuxSwap && p.fileSystem().type() !=
FileSystem::Type::Lvm2_PV) {
         const QStorageInfo storage = QStorageInfo(mountPoint);
         if (p.isMounted() && storage.isValid())

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to