Skip to content

Commit

Permalink
Check dataprovider
Browse files Browse the repository at this point in the history
  • Loading branch information
elpaso committed Jan 27, 2023
1 parent 7d06726 commit 4179a5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/qgisapp.cpp
Expand Up @@ -10425,7 +10425,7 @@ void QgisApp::mergeSelectedFeatures()
QgsFeatureRequest request;
request.setFlags( QgsFeatureRequest::Flag::NoGeometry );
// Handle multi pks
if ( vl->dataProvider()->pkAttributeIndexes().count() > 1 && vl->dataProvider()->pkAttributeIndexes().count() <= attrs.count() )
if ( vl->dataProvider() && vl->dataProvider()->pkAttributeIndexes().count() > 1 && vl->dataProvider()->pkAttributeIndexes().count() <= attrs.count() )
{
const auto pkIdxList { vl->dataProvider()->pkAttributeIndexes() };
QStringList conditions;
Expand Down

0 comments on commit 4179a5b

Please sign in to comment.