diff --git a/ApplicationLibCode/ProjectDataModel/Summary/RimEnsembleStatisticsCase.cpp b/ApplicationLibCode/ProjectDataModel/Summary/RimEnsembleStatisticsCase.cpp index 88a5b370f2..9ff1de4420 100644 --- a/ApplicationLibCode/ProjectDataModel/Summary/RimEnsembleStatisticsCase.cpp +++ b/ApplicationLibCode/ProjectDataModel/Summary/RimEnsembleStatisticsCase.cpp @@ -73,6 +73,8 @@ bool RimEnsembleStatisticsCase::hasMeanData() const //-------------------------------------------------------------------------------------------------- std::pair> RimEnsembleStatisticsCase::values( const RifEclipseSummaryAddress& resultAddress ) const { + if ( resultAddress.isErrorResult() ) return std::make_pair(false, std::vector{}); + switch ( resultAddress.statisticsType() ) { case RifEclipseSummaryAddressDefines::StatisticsType::P10: