Guard for empty summary case

This commit is contained in:
Magne Sjaastad 2017-10-13 13:44:18 +02:00
parent 9d0e59c60f
commit dffaf8ed25

View File

@ -240,6 +240,8 @@ void RiuSummaryCurveDefSelection::setSelectedCurveDefinitions(const std::vector<
for (const auto& caseAddressPair : curveDefinitions)
{
RimSummaryCase* summaryCase = caseAddressPair.summaryCase();
if (!summaryCase) continue;
const RifEclipseSummaryAddress& summaryAddress = caseAddressPair.summaryAddress();
// Select summary category if not already selected