diff --git a/ApplicationCode/ProjectDataModel/RimWellLogTrack.cpp b/ApplicationCode/ProjectDataModel/RimWellLogTrack.cpp index 08130437b6..3cfc5e48f3 100644 --- a/ApplicationCode/ProjectDataModel/RimWellLogTrack.cpp +++ b/ApplicationCode/ProjectDataModel/RimWellLogTrack.cpp @@ -524,7 +524,10 @@ void RimWellLogTrack::updateAxisAndGridTickIntervals() void RimWellLogTrack::updateAllLegendItems() { reattachAllCurves(); - m_wellLogTrackPlotWidget->updateLegend(); + if (m_wellLogTrackPlotWidget) + { + m_wellLogTrackPlotWidget->updateLegend(); + } } //--------------------------------------------------------------------------------------------------