Skip to content
Permalink
Browse files

Fix crash when grass provider is not available

Fixes #21604
  • Loading branch information
nyalldawson committed Mar 20, 2019
1 parent 31ba9a1 commit d82298e96298950196e6552d0e91fe40a3eb4729
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 d82298e

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