Skip to content
Permalink
Browse files

[ogr provider] backport @m-kuhn commit 92ace51

  • Loading branch information
nirvn committed Aug 15, 2018
1 parent be04eeb commit aa433765ebdb396ab3c8ebb95ff4ed1604eedf5b
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/providers/ogr/qgsogrfeatureiterator.cpp
@@ -48,7 +48,7 @@ QgsOgrFeatureIterator::QgsOgrFeatureIterator( QgsOgrFeatureSource *source, bool

//QgsDebugMsg( "Feature iterator of " + mSource->mLayerName + ": acquiring connection");
mConn = QgsOgrConnPool::instance()->acquireConnection( QgsOgrProviderUtils::connectionPoolId( mSource->mDataSource ), mRequest.connectionTimeout(), mRequest.requestMayBeNested() );
if ( !mConn->ds )
if ( !mConn || !mConn->ds )
{
return;
}

0 comments on commit aa43376

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