Guard pointer before use

This commit is contained in:
Magne Sjaastad 2022-08-09 13:04:36 +02:00
parent c3f538c1dd
commit 63b26ebf2d

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() )
{