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 c1c8aa64181916d3b05c5469ed802067e3754210
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/core/qgsvectorlayerjoinbuffer.cpp
@@ -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.
You can’t perform that action at this time.