mirror of
https://github.com/parchlinux/calamares.git
synced 2025-02-24 19:05:46 -05: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
Reference in a new issue