Skip to content

Commit 00ba5c3

Browse files
committed
#13882 SimWellPipes: Guard out-of-bounds branch index to fix pipe visualization crash
1 parent 5b37941 commit 00ba5c3

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

ApplicationLibCode/ModelVisualization/RivSimWellPipesPartMgr.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -308,6 +308,8 @@ void RivSimWellPipesPartMgr::appendVirtualConnectionFactorGeo( const RimEclipseV
308308
{
309309
auto wellPaths = m_simWellInView->wellPipeBranches();
310310

311+
if ( brIdx >= wellPaths.size() ) return;
312+
311313
const RigWellPath* wellPath = wellPaths[brIdx];
312314

313315
RigEclipseWellLogExtractor* extractor = RiaExtractionTools::findOrCreateSimWellExtractor( m_simWellInView, wellPath );

0 commit comments

Comments
 (0)