Fishbones : Early exit if no well path geometry is available

This commit is contained in:
Magne Sjaastad 2021-04-20 08:35:51 +02:00
parent c2f0f604fe
commit 7dcc1dc508

View File

@ -202,7 +202,8 @@ void RicFishbonesTransmissibilityCalculationFeatureImp::findFishboneLateralsWell
const RimWellPath* wellPath,
const RicExportCompletionDataSettingsUi& settings )
{
if ( !wellPath || !wellPath->wellPathGeometry() ) return;
if ( !wellPath || !wellPath->wellPathGeometry() || wellPath->wellPathGeometry()->measuredDepths().size() < 2 )
return;
// Generate data
const RigEclipseCaseData* caseData = settings.caseToApply()->eclipseCaseData();