mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#3783 Guard in case of incomplete project data
This commit is contained in:
@@ -174,11 +174,14 @@ std::vector<const RigWellPath*> RimSimWellInView::wellPipeBranches() const
|
||||
this->firstAncestorOrThisOfTypeAsserted(eclipseCase);
|
||||
RigEclipseCaseData* caseData = eclipseCase->eclipseCaseData();
|
||||
CVF_ASSERT(caseData);
|
||||
if (caseData)
|
||||
{
|
||||
bool includeCellCenters = this->isUsingCellCenterForPipe();
|
||||
bool detectBrances = simWellCollection->isAutoDetectingBranches;
|
||||
|
||||
bool includeCellCenters = this->isUsingCellCenterForPipe();
|
||||
bool detectBrances = simWellCollection->isAutoDetectingBranches;
|
||||
|
||||
return caseData->simulationWellBranches(this->name(), includeCellCenters, detectBrances);
|
||||
return caseData->simulationWellBranches(this->name(), includeCellCenters, detectBrances);
|
||||
}
|
||||
return std::vector<const RigWellPath*>();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user