Fishbones : Early exit if no well path geometry is available

This commit is contained in:
Magne Sjaastad committed 2021-04-20 11:05:33 +02:00
1 parent c2f0f604fe
commit 7dcc1dc508
1 file changed
+2 -1
@@ -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();