Guard pointer before use

This commit is contained in:
Magne Sjaastad
2022-08-09 13:04:36 +02:00
parent 0c7fe7da1a
commit b5708424e2

View File

@@ -217,7 +217,7 @@ void RimSummaryPlot::updateAxes()
updateAxis( RiaDefines::PlotAxis::PLOT_AXIS_LEFT );
updateAxis( RiaDefines::PlotAxis::PLOT_AXIS_RIGHT );
m_summaryPlot->clearAnnotationObjects();
if ( m_summaryPlot ) m_summaryPlot->clearAnnotationObjects();
if ( timeAxisProperties() && plotWidget() )
{