mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-16 18:34:54 -06:00
#3783 Guard in case of incomplete project data
This commit is contained in:
parent
3a31199365
commit
2ae4e483ed
@ -174,11 +174,14 @@ std::vector<const RigWellPath*> RimSimWellInView::wellPipeBranches() const
|
|||||||
this->firstAncestorOrThisOfTypeAsserted(eclipseCase);
|
this->firstAncestorOrThisOfTypeAsserted(eclipseCase);
|
||||||
RigEclipseCaseData* caseData = eclipseCase->eclipseCaseData();
|
RigEclipseCaseData* caseData = eclipseCase->eclipseCaseData();
|
||||||
CVF_ASSERT(caseData);
|
CVF_ASSERT(caseData);
|
||||||
|
if (caseData)
|
||||||
|
{
|
||||||
|
bool includeCellCenters = this->isUsingCellCenterForPipe();
|
||||||
|
bool detectBrances = simWellCollection->isAutoDetectingBranches;
|
||||||
|
|
||||||
bool includeCellCenters = this->isUsingCellCenterForPipe();
|
return caseData->simulationWellBranches(this->name(), includeCellCenters, detectBrances);
|
||||||
bool detectBrances = simWellCollection->isAutoDetectingBranches;
|
}
|
||||||
|
return std::vector<const RigWellPath*>();
|
||||||
return caseData->simulationWellBranches(this->name(), includeCellCenters, detectBrances);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
|
@ -215,8 +215,11 @@ QList<caf::PdmOptionItemInfo> RimSummaryPlotSourceStepping::calculateValueOption
|
|||||||
|
|
||||||
for (auto reader : readers)
|
for (auto reader : readers)
|
||||||
{
|
{
|
||||||
auto subset = RiaSummaryCurveAnalyzer::addressesForCategory(reader->allResultAddresses(), category);
|
if (reader != nullptr)
|
||||||
quantityAnalyzer.appendAdresses(subset);
|
{
|
||||||
|
auto subset = RiaSummaryCurveAnalyzer::addressesForCategory(reader->allResultAddresses(), category);
|
||||||
|
quantityAnalyzer.appendAdresses(subset);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
for (const auto& quantity : quantityAnalyzer.quantities())
|
for (const auto& quantity : quantityAnalyzer.quantities())
|
||||||
|
Loading…
Reference in New Issue
Block a user