Add nullptr guard when setting well parent.

This commit is contained in:
jonjenssen authored and JJ committed 2026-06-01 14:37:46 +02:00
1 parent 8ad0fb7b7e
commit bce29354ea
1 file changed
+1 -1
@@ -118,7 +118,7 @@ void RicSetParentWellPathFeature::onActionTriggered( bool isChecked )
if ( parentWellPath )
{
if ( !parentWellPath->wellPathGeometry() || parentWellPath->wellPathGeometry()->measuredDepths().size() < 2 ) return;
if ( selectedWellPath->wellPathGeometry()->wellPathPoints().empty() ) return;
if ( !selectedWellPath->wellPathGeometry() || selectedWellPath->wellPathGeometry()->wellPathPoints().empty() ) return;
auto headOfLateral = selectedWellPath->wellPathGeometry()->wellPathPoints().front();