#8456 Early reject if no plot is created

This commit is contained in:
Magne Sjaastad committed 2022-01-18 09:20:23 +01:00
1 parent f996b5383a
commit 8f75dcb29f
1 file changed
+3
@@ -951,6 +951,9 @@ void RimWellAllocationPlot::onLoadDataAndUpdate()
return;
}
// Other plot functions depend on a valid plot widget, early reject to avoid a lot of testing on valid widget
if ( !m_wellAllocationPlotWidget ) return;
updateFromWell();
m_accumulatedWellFlowPlot->loadDataAndUpdate();
updateFormationNamesData();