nullptr safety.
This commit is contained in:
parent
754cfc78b3
commit
18b6e56271
@ -38,6 +38,9 @@ namespace PartUtils
|
|||||||
bool
|
bool
|
||||||
canBeReplaced( Partition* candidate )
|
canBeReplaced( Partition* candidate )
|
||||||
{
|
{
|
||||||
|
if ( !candidate )
|
||||||
|
return false;
|
||||||
|
|
||||||
bool ok = false;
|
bool ok = false;
|
||||||
double requiredStorageGB = Calamares::JobQueue::instance()
|
double requiredStorageGB = Calamares::JobQueue::instance()
|
||||||
->globalStorage()
|
->globalStorage()
|
||||||
@ -65,6 +68,9 @@ canBeReplaced( Partition* candidate )
|
|||||||
bool
|
bool
|
||||||
canBeResized( Partition* candidate )
|
canBeResized( Partition* candidate )
|
||||||
{
|
{
|
||||||
|
if ( !candidate )
|
||||||
|
return false;
|
||||||
|
|
||||||
if ( !candidate->fileSystem().supportGrow() ||
|
if ( !candidate->fileSystem().supportGrow() ||
|
||||||
!candidate->fileSystem().supportShrink() )
|
!candidate->fileSystem().supportShrink() )
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user