Skip to content
Permalink
Browse files

Fix crash when grass provider is not available

Fixes #21604
  • Loading branch information
nyalldawson committed Mar 19, 2019
1 parent 7fadfbf commit a963eaad54b40c3888a1bc263fd635db210b0dcb
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/qgsmaplayerproxymodel.cpp
@@ -117,7 +117,7 @@ bool QgsMapLayerProxyModel::filterAcceptsRow( int source_row, const QModelIndex
if ( mExceptList.contains( layer ) )
return false;

if ( mExcludedProviders.contains( layer->dataProvider()->name() ) )
if ( layer->dataProvider() && mExcludedProviders.contains( layer->dataProvider()->name() ) )
return false;

if ( mFilters.testFlag( WritableLayer ) && layer->readOnly() )

0 comments on commit a963eaa

Please sign in to comment.
You can’t perform that action at this time.