Skip to content
Permalink
Browse files
Fix #10657 (crash opening a project with invalid join)
  • Loading branch information
wonder-sk committed Jun 20, 2014
1 parent 9d90923 commit c1c8aa6
Showing 1 changed file with 3 additions and 0 deletions.
@@ -69,6 +69,9 @@ void QgsVectorLayerJoinBuffer::cacheJoinLayer( QgsVectorJoinInfo& joinInfo )
else
joinFieldIndex = cacheLayer->pendingFields().indexFromName( joinInfo.joinFieldName );

if ( joinFieldIndex < 0 || joinFieldIndex >= cacheLayer->pendingFields().count() )
return;

joinInfo.cachedAttributes.clear();

QgsFeatureIterator fit = cacheLayer->getFeatures( QgsFeatureRequest().setFlags( QgsFeatureRequest::NoGeometry ) );

0 comments on commit c1c8aa6

Please sign in to comment.