Assert on nullptr Device*.
This commit is contained in:
parent
9afa2935cd
commit
44368db30a
@ -83,6 +83,7 @@ PartitionIterator::operator!=( const PartitionIterator& other ) const
|
|||||||
PartitionIterator
|
PartitionIterator
|
||||||
PartitionIterator::begin( Device* device )
|
PartitionIterator::begin( Device* device )
|
||||||
{
|
{
|
||||||
|
Q_ASSERT(device);
|
||||||
PartitionTable* table = device->partitionTable();
|
PartitionTable* table = device->partitionTable();
|
||||||
if ( !table )
|
if ( !table )
|
||||||
return PartitionIterator( nullptr );
|
return PartitionIterator( nullptr );
|
||||||
|
Loading…
Reference in New Issue
Block a user