From 0053721896bde5e3ac3beccd7cb45bcee3475cac Mon Sep 17 00:00:00 2001 From: Teo Mrnjavac Date: Fri, 9 Sep 2016 11:00:05 +0200 Subject: [PATCH] Assert on nullptr Device*. --- src/modules/partition/core/PartitionIterator.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/modules/partition/core/PartitionIterator.cpp b/src/modules/partition/core/PartitionIterator.cpp index 097e8d4aa..df1a2e4d7 100644 --- a/src/modules/partition/core/PartitionIterator.cpp +++ b/src/modules/partition/core/PartitionIterator.cpp @@ -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 );