#11132 Guard crash when accessing simulation well data

This commit is contained in:
Magne Sjaastad
2024-01-29 16:01:08 +01:00
parent 0ff5365406
commit 91fdd7efe1

View File

@@ -1291,6 +1291,8 @@ std::vector<QString> RimWellConnectivityTable::getViewFilteredWellNamesFromFilte
const auto productionWellResultFrame = wellResult->staticWellResultFrame();
for ( const auto& resultPoint : productionWellResultFrame->allResultPoints() )
{
if ( !resultPoint.isCell() ) continue;
if ( cellIdxCalc.isCellVisible( resultPoint.gridIndex(), resultPoint.cellIndex() ) )
{
productionWells.push_back( wellResult->m_wellName );