Skip to content

Commit

Permalink
Regression Test: Guard crash if no seismic data is available
Browse files Browse the repository at this point in the history
  • Loading branch information
magnesj committed Oct 16, 2023
1 parent 2368b59 commit 666d0e1
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 666d0e1

Please sign in to comment.