#10572 Summary Table: Crash when creating summary table if no case is present

This commit is contained in:
Magne Sjaastad 2023-09-03 18:05:16 +02:00
parent 2d0a6a9aa7
commit fe17b211b8

View File

@ -682,11 +682,10 @@ void RimSummaryTable::createTableData()
m_tableData = TableData();
m_tableData.thresholdValue = m_thresholdValue();
if ( !m_case ) return;
const auto summaryReader = m_case->summaryReader();
if ( !summaryReader )
{
return;
}
if ( !summaryReader ) return;
// Create time step value for vectors with no values above threshold
const time_t invalidTimeStep = 0;