mirror of
https://github.com/parchlinux/calamares.git
synced 2025-07-03 12:25:38 -04:00
Assert on nullptr Device*.
This commit is contained in:
parent
23026252a8
commit
464336d609
1 changed files with 1 additions and 0 deletions
|
@ -83,6 +83,7 @@ PartitionIterator::operator!=( const PartitionIterator& other ) const
|
|||
PartitionIterator
|
||||
PartitionIterator::begin( Device* device )
|
||||
{
|
||||
Q_ASSERT(device);
|
||||
PartitionTable* table = device->partitionTable();
|
||||
if ( !table )
|
||||
return PartitionIterator( nullptr );
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue