mirror of
https://github.com/OPM/ResInsight.git
synced 2026-08-27 05:37:21 -05:00
#13882 SimWellPipes: Guard out-of-bounds branch index to fix pipe visualization crash
This commit is contained in:
@@ -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 );
|
||||
|
||||
Reference in New Issue
Block a user