Assert on nullptr Device*.

This commit is contained in:
Teo Mrnjavac 2016-09-09 11:00:05 +02:00 committed by Philip
parent 9afa2935cd
commit 44368db30a

View File

@ -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 );