Make curve drawing more robust (#8537)

* Janitor : Improve robustness

* Guard nullptr access

* Limit the curve points to incoming from/to curve point index range

Co-authored-by: magnesj <magnesj@users.noreply.github.com>
This commit is contained in:
Magne Sjaastad
2022-02-11 13:18:36 +01:00
committed by GitHub
parent 6591de716b
commit 6c92206893
3 changed files with 30 additions and 17 deletions

View File

@@ -388,7 +388,7 @@ void RimGridTimeHistoryCurve::onLoadDataAndUpdate( bool updateParentPlot )
{
this->RimPlotCurve::updateCurvePresentation( updateParentPlot );
if ( isCurveVisible() )
if ( isCurveVisible() && m_plotCurve )
{
std::vector<double> values;