]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/userfeedback/placesdatasource.cpp
Don't crash when mountpoint is not found
[dolphin.git] / src / userfeedback / placesdatasource.cpp
index 6db89636d0862e208c1399d8b0dc0396b12a8a93..991ce0a18bba9e3f6807c9df560cec1af1c3fa7d 100644 (file)
@@ -45,7 +45,7 @@ QVariant PlacesDataSource::data()
             auto storageAccess = device.as<Solid::StorageAccess>();
             if (storageAccess) {
                 auto mountPoint = KMountPoint::currentMountPoints().findByPath(storageAccess->filePath());
-                if (!mountPoint->mountedFrom().startsWith(QLatin1String("kdeconnect@"))) {
+                if (mountPoint && !mountPoint->mountedFrom().startsWith(QLatin1String("kdeconnect@"))) {
                     hasSSHFS = true;
                     continue;
                 }