[luksbootkeyfile] fix test for empty mount point

This commit is contained in:
Adriaan de Groot 2022-04-23 14:33:25 +02:00
parent 4466e360e1
commit 4613386863

View File

@ -160,8 +160,8 @@ partitionsFromGlobalStorage()
STATICTEST bool
hasMountPoint( const QVariantMap& map, const QString& path )
{
const QString mountPoint = map.value( QStringLiteral( "mountPoint" ) ).toString();
return QDir::cleanPath( mountPoint ) == path;
const auto v = map.value( QStringLiteral( "mountPoint" ) );
return v.isValid() && QDir::cleanPath( v.toString() ) == path;
}
STATICTEST bool