diff --git a/ApplicationLibCode/ProjectDataModel/Seismic/RimSeismicView.cpp b/ApplicationLibCode/ProjectDataModel/Seismic/RimSeismicView.cpp index 7c2b432431..ec31c0d791 100644 --- a/ApplicationLibCode/ProjectDataModel/Seismic/RimSeismicView.cpp +++ b/ApplicationLibCode/ProjectDataModel/Seismic/RimSeismicView.cpp @@ -559,6 +559,7 @@ RigHistogramData RimSeismicView::histogramData() { auto xvals = m_seismicData->histogramXvalues(); auto yvals = m_seismicData->histogramYvalues(); + if ( xvals.empty() || yvals.empty() ) return histData; histData.min = xvals.front(); histData.max = xvals.back();