#4716 Summary Case : Guard access to contained summary reader

This commit is contained in:
Magne Sjaastad
2019-09-13 13:17:07 +02:00
parent cdf1b85551
commit 07ab821646
5 changed files with 21 additions and 15 deletions

View File

@@ -276,7 +276,7 @@ std::set<RifEclipseSummaryAddress> RimSummaryCaseCollection::ensembleSummaryAddr
}
}
if (maxAddrIndex >= 0)
if (maxAddrIndex >= 0 && m_cases[maxAddrIndex]->summaryReader())
{
const std::set<RifEclipseSummaryAddress>& addrs = m_cases[maxAddrIndex]->summaryReader()->allResultAddresses();
addresses.insert(addrs.begin(), addrs.end());