Skip to content
Permalink
Browse files
Fix: Check for existence of data provider to prevent segfault
  • Loading branch information
m-kuhn authored and jef-n committed Mar 27, 2013
1 parent 9154ed1 commit c6bd8a12b843906b4e874e5063a3c7574f052e45
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/qgsvectorlayercache.cpp
@@ -256,7 +256,7 @@ QgsFeatureIterator QgsVectorLayerCache::getFeatures( const QgsFeatureRequest &fe
it = mLayer->getFeatures( featureRequest );
}

if ( requiresWriterIt )
if ( requiresWriterIt && mLayer->dataProvider() )
{
// No index was able to satisfy the request
it = QgsFeatureIterator( new QgsCachedFeatureWriterIterator( this, featureRequest ) );

0 comments on commit c6bd8a1

Please sign in to comment.