diff --git a/ApplicationLibCode/ProjectDataModel/Summary/RimSummaryMultiPlot.cpp b/ApplicationLibCode/ProjectDataModel/Summary/RimSummaryMultiPlot.cpp index 9f373ccb24..c785cc9668 100644 --- a/ApplicationLibCode/ProjectDataModel/Summary/RimSummaryMultiPlot.cpp +++ b/ApplicationLibCode/ProjectDataModel/Summary/RimSummaryMultiPlot.cpp @@ -869,14 +869,17 @@ void RimSummaryMultiPlot::computeAggregatedAxisRange() axisRangeAggregation == AxisRangeAggregation::REGIONS ) { RiaSummaryAddressAnalyzer analyzer; - auto ensemble = curve->summaryCaseY()->ensemble(); - if ( ensemble ) + if ( curve->summaryCaseY() ) { - analyzer.appendAddresses( ensemble->ensembleSummaryAddresses() ); - } - else - { - analyzer.appendAddresses( curve->summaryCaseY()->summaryReader()->allResultAddresses() ); + auto ensemble = curve->summaryCaseY()->ensemble(); + if ( ensemble ) + { + analyzer.appendAddresses( ensemble->ensembleSummaryAddresses() ); + } + else + { + analyzer.appendAddresses( curve->summaryCaseY()->summaryReader()->allResultAddresses() ); + } } if ( axisRangeAggregation == AxisRangeAggregation::WELLS )