From 91fdd7efe1311ab7f86461d86546dfcfe6e7e43f Mon Sep 17 00:00:00 2001 From: Magne Sjaastad Date: Mon, 29 Jan 2024 16:01:08 +0100 Subject: [PATCH] #11132 Guard crash when accessing simulation well data --- .../ProjectDataModel/Flow/RimWellConnectivityTable.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ApplicationLibCode/ProjectDataModel/Flow/RimWellConnectivityTable.cpp b/ApplicationLibCode/ProjectDataModel/Flow/RimWellConnectivityTable.cpp index b5041f26c0..12bbbbe8be 100644 --- a/ApplicationLibCode/ProjectDataModel/Flow/RimWellConnectivityTable.cpp +++ b/ApplicationLibCode/ProjectDataModel/Flow/RimWellConnectivityTable.cpp @@ -1291,6 +1291,8 @@ std::vector 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 );