#3783 Guard in case of incomplete project data

This commit is contained in:
Gaute Lindkvist authored and Magne Sjaastad committed 2018-12-11 13:14:58 +01:00
1 parent 3a31199365
commit 2ae4e483ed
2 files changed
+12 -6

No files matched your search

@@ -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*>();
}
//--------------------------------------------------------------------------------------------------
@@ -215,8 +215,11 @@ QList<caf::PdmOptionItemInfo> RimSummaryPlotSourceStepping::calculateValueOption
for (auto reader : readers)
{
auto subset = RiaSummaryCurveAnalyzer::addressesForCategory(reader->allResultAddresses(), category);
quantityAnalyzer.appendAdresses(subset);
if (reader != nullptr)
{
auto subset = RiaSummaryCurveAnalyzer::addressesForCategory(reader->allResultAddresses(), category);
quantityAnalyzer.appendAdresses(subset);
}
}
for (const auto& quantity : quantityAnalyzer.quantities())