Skip to content
Snippets Groups Projects
Commit 464336d6 authored by Teo Mrnjavac's avatar Teo Mrnjavac
Browse files

Assert on nullptr Device*.

parent 23026252
No related branches found
No related tags found
No related merge requests found
......@@ -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 );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment