Make RicHistogramPlotTools robust against null plots, data sources, and missing singletons

Guard all public entry points against null plot/data-source/curve/ensemble arguments, null-check RiaGuiApplication::instance() and RimMainPlotCollection::current() before dereferencing, and skip null curves/data sources when collecting existing data sources.
This commit is contained in:
Magne Sjaastad committed 2026-10-05 19:56:10 +02:00
1 parent b22a2e3106
commit b0e8d0b62c
2 files changed
+41 -13

No files matched your search

@@ -557,7 +557,7 @@ void RimHistogramCurve::loadAndUpdateDataAndPlot()
plot->updateConnectedEditors();
RiuPlotMainWindow* mainPlotWindow = RiaGuiApplication::instance()->mainPlotWindow();
mainPlotWindow->updateMultiPlotToolBar();
if ( mainPlotWindow ) mainPlotWindow->updateMultiPlotToolBar();
dataChanged.send();
}