#13882 SimWellPipes: Guard out-of-bounds branch index to fix pipe visualization crash

This commit is contained in:
Magne Sjaastad
2026-04-16 16:43:36 +02:00
parent d37e50b55b
commit b0799247c8
@@ -308,6 +308,8 @@ void RivSimWellPipesPartMgr::appendVirtualConnectionFactorGeo( const RimEclipseV
{
auto wellPaths = m_simWellInView->wellPipeBranches();
if ( brIdx >= wellPaths.size() ) return;
const RigWellPath* wellPath = wellPaths[brIdx];
RigEclipseWellLogExtractor* extractor = RiaExtractionTools::findOrCreateSimWellExtractor( m_simWellInView, wellPath );