Do not dereference nullptr.
This commit is contained in:
parent
9bff57a60d
commit
8882a477be
@ -151,6 +151,12 @@ createNewEncryptedPartition( PartitionNode* parent,
|
||||
FileSystemFactory::create( FileSystem::Luks,
|
||||
firstSector,
|
||||
lastSector ) );
|
||||
if ( !fs )
|
||||
{
|
||||
qDebug() << "ERROR: cannot create LUKS filesystem. Giving up.";
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
fs->createInnerFileSystem( fsType );
|
||||
fs->setPassphrase( passphrase );
|
||||
Partition* p = new Partition( parent,
|
||||
|
Loading…
Reference in New Issue
Block a user