Create Intersection: Crash for Intersection along Simulation well

Check if any geometry is present before accessing geometry data
This commit is contained in:
Magne Sjaastad committed 2023-12-11 12:32:19 +01:00
1 parent 47e9046785
commit 681acfb0e0
1 file changed
+2
@@ -240,6 +240,8 @@ void RigVisibleCategoriesCalculator::appendVisibleIntersectionCells( RimEclipseV
for ( const auto geoGenerator : intersectionGeoGenerators )
{
if ( !geoGenerator->isAnyGeometryPresent() ) continue;
for ( const auto& cIdx : geoGenerator->triangleToCellIndex() )
{
visibleCells.insert( cIdx );