Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix crash when loading a project with invalid layers and the geometry
checker plugin is enabled
  • Loading branch information
nyalldawson committed Mar 8, 2021
1 parent 8d90586 commit fe5c761
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/plugins/geometry_checker/qgsgeometrycheckersetuptab.cpp
Expand Up @@ -111,6 +111,9 @@ void QgsGeometryCheckerSetupTab::updateLayers()
// Collect layers
for ( QgsVectorLayer *layer : QgsProject::instance()->layers<QgsVectorLayer *>() )
{
if ( !layer->isValid() || !layer->dataProvider() )
continue;

QListWidgetItem *item = new QListWidgetItem( layer->name() );
bool supportedGeometryType = true;
if ( layer->geometryType() == QgsWkbTypes::PointGeometry )
Expand Down

0 comments on commit fe5c761

Please sign in to comment.