#7296 Property Filter : Crash when creating a property filter when no valid cell results is active

This commit is contained in:
Magne Sjaastad 2021-01-27 15:39:40 +01:00
parent acd78daa3f
commit f55da30f4d

View File

@ -396,7 +396,10 @@ void RimEclipsePropertyFilter::computeResultValueRange()
RigCaseCellResultsData* results = m_resultDefinition->currentGridCellResults();
if ( results )
{
results->minMaxCellScalarValues( scalarIndex, min, max );
if ( results->hasResultEntry( scalarIndex ) )
{
results->minMaxCellScalarValues( scalarIndex, min, max );
}
if ( m_resultDefinition->hasCategoryResult() )
{