Skip to content
Permalink
Browse files

Fix OGR iterator crash on timeout

  • Loading branch information
m-kuhn committed Aug 3, 2018
1 parent 14eb0e5 commit 92ace516a747a19aa54db8598b5b251dc8736045
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/providers/ogr/qgsogrfeatureiterator.cpp
@@ -57,7 +57,7 @@ QgsOgrFeatureIterator::QgsOgrFeatureIterator( QgsOgrFeatureSource *source, bool
{
//QgsDebugMsg( "Feature iterator of " + mSource->mLayerName + ": acquiring connection");
mConn = QgsOgrConnPool::instance()->acquireConnection( QgsOgrProviderUtils::connectionPoolId( mSource->mDataSource ), request.connectionTimeout(), request.requestMayBeNested() );
if ( !mConn->ds )
if ( !mConn || !mConn->ds )
{
return;
}

0 comments on commit 92ace51

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