Add nullptr guard when setting well parent.

This commit is contained in:
jonjenssen
2026-06-01 14:37:46 +02:00
committed by JJ
parent 8ad0fb7b7e
commit bce29354ea
@@ -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();