Skip to content

Commit ab7c0bf

Browse files
committedAug 24, 2015
Fix #13224 add joins crashes if no other vector layer exists
1 parent 42953e6 commit ab7c0bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/app/qgsjoindialog.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ QgsJoinDialog::QgsJoinDialog( QgsVectorLayer* layer, QList<QgsMapLayer*> already
4747
mCacheInMemoryCheckBox->setChecked( true );
4848

4949
QgsMapLayer *joinLayer = mJoinLayerComboBox->currentLayer();
50-
if ( joinLayer->isValid() )
50+
if ( joinLayer && joinLayer->isValid() )
5151
{
5252
mJoinFieldComboBox->setLayer( joinLayer );
5353
joinedLayerChanged( joinLayer );

0 commit comments

Comments
 (0)
Please sign in to comment.