mirror of
https://github.com/OPM/ResInsight.git
synced 2026-08-27 05:37:21 -05:00
Add nullptr guard when setting well parent.
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user