mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#11132 Guard crash when accessing simulation well data
This commit is contained in:
@@ -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 );
|
||||
|
||||
Reference in New Issue
Block a user