diff --git a/ApplicationCode/ProjectDataModel/Summary/RimSummaryPlot.cpp b/ApplicationCode/ProjectDataModel/Summary/RimSummaryPlot.cpp index 8f35ab6d97..4494196e0c 100644 --- a/ApplicationCode/ProjectDataModel/Summary/RimSummaryPlot.cpp +++ b/ApplicationCode/ProjectDataModel/Summary/RimSummaryPlot.cpp @@ -606,7 +606,10 @@ void RimSummaryPlot::updateAll() //-------------------------------------------------------------------------------------------------- void RimSummaryPlot::updateLegend() { - m_plotWidget->setLegendVisible( m_showPlotLegends && isMdiWindow() ); + if ( m_plotWidget ) + { + m_plotWidget->setLegendVisible( m_showPlotLegends && isMdiWindow() ); + } reattachAllCurves(); if ( m_plotWidget )