diff --git a/ApplicationCode/ProjectDataModel/Summary/RimEnsembleStatisticsCase.cpp b/ApplicationCode/ProjectDataModel/Summary/RimEnsembleStatisticsCase.cpp index 2e86872f69..7165de359d 100644 --- a/ApplicationCode/ProjectDataModel/Summary/RimEnsembleStatisticsCase.cpp +++ b/ApplicationCode/ProjectDataModel/Summary/RimEnsembleStatisticsCase.cpp @@ -147,6 +147,8 @@ void RimEnsembleStatisticsCase::calculate(const std::vector sum std::vector values; reader->values(inputAddress, &values); + if (timeSteps.size() != values.size()) continue; + RiaTimeHistoryCurveResampler resampler; resampler.setCurveData(values, timeSteps); if (inputAddress.hasAccumulatedData()) resampler.resampleAndComputePeriodEndValues(DateTimePeriod::DAY);