mirror of
https://github.com/OPM/ResInsight.git
synced 2025-01-21 22:13:25 -06:00
#4154 Summary curves : Test if summary address for error is present before accessing values
This commit is contained in:
parent
343dd1674e
commit
6008b8a45d
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user