Skip to content

Commit 8aa7b56

Browse files
committed
Fixes #18435: QGIS crash when deleting auxiliary layer
1 parent 193c554 commit 8aa7b56

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/core/qgsvectorlayer.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -4304,7 +4304,8 @@ void QgsVectorLayer::setAuxiliaryLayer( QgsAuxiliaryLayer *alayer )
43044304
}
43054305

43064306
mAuxiliaryLayer.reset( alayer );
4307-
mAuxiliaryLayer->setParent( this );
4307+
if ( mAuxiliaryLayer )
4308+
mAuxiliaryLayer->setParent( this );
43084309
updateFields();
43094310
}
43104311

0 commit comments

Comments
 (0)