#4154 Summary curves : Test if summary address for error is present before accessing values

This commit is contained in:
Magne Sjaastad 2019-03-11 21:24:46 +01:00
parent 343dd1674e
commit 6008b8a45d

View File

@ -289,7 +289,10 @@ std::vector<double> RimSummaryCurve::errorValuesY() const
if (!reader) return values;
RifEclipseSummaryAddress addr = errorSummaryAddressY();
reader->values(addr, &values);
if (reader->hasAddress(addr))
{
reader->values(addr, &values);
}
return values;
}