Skip to content

Commit

Permalink
Fix #13224 add joins crashes if no other vector layer exists
Browse files Browse the repository at this point in the history
  • Loading branch information
3nids committed Aug 24, 2015
1 parent 22c0c45 commit 276b013
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/qgsjoindialog.cpp
Expand Up @@ -47,7 +47,7 @@ QgsJoinDialog::QgsJoinDialog( QgsVectorLayer* layer, QList<QgsMapLayer*> already
mCacheInMemoryCheckBox->setChecked( true ); mCacheInMemoryCheckBox->setChecked( true );


QgsMapLayer *joinLayer = mJoinLayerComboBox->currentLayer(); QgsMapLayer *joinLayer = mJoinLayerComboBox->currentLayer();
if ( joinLayer->isValid() ) if ( joinLayer && joinLayer->isValid() )
{ {
mJoinFieldComboBox->setLayer( joinLayer ); mJoinFieldComboBox->setLayer( joinLayer );
joinedLayerChanged( joinLayer ); joinedLayerChanged( joinLayer );
Expand Down

0 comments on commit 276b013

Please sign in to comment.