mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#4716 Summary Case : Guard access to contained summary reader
This commit is contained in:
@@ -427,7 +427,7 @@ void RicExportFractureCompletionsImpl::getWellPressuresAndInitialProductionTimeS
|
||||
{
|
||||
RimSummaryCase* summaryCase = mainCollection->findSummaryCaseFromEclipseResultCase(resultCase);
|
||||
|
||||
if (summaryCase)
|
||||
if (summaryCase && summaryCase->summaryReader())
|
||||
{
|
||||
std::vector<double> values;
|
||||
if (summaryCase->summaryReader()->values(wbhpPressureAddress, &values))
|
||||
|
||||
Reference in New Issue
Block a user