mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-27 01:15:38 -04:00
Don't dereference nullptr (fix Coverity defect 121863).
This commit is contained in:
parent
53741f0d36
commit
a0ac9d9f07
1 changed files with 5 additions and 0 deletions
|
@ -444,6 +444,11 @@ ChoicePage::doAlongsideSetupSplitter( const QModelIndex& current,
|
|||
return;
|
||||
|
||||
Partition* part = modl->partitionForIndex( current );
|
||||
if ( !part )
|
||||
{
|
||||
cDebug() << Q_FUNC_INFO << "Partition not found for index" << current;
|
||||
return;
|
||||
}
|
||||
|
||||
double requiredStorageGB = Calamares::JobQueue::instance()
|
||||
->globalStorage()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue