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 af97250 commit 53fee116936ff36663be605c2a07128e3e5de79d
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 53fee11

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