Crash fix, do not assert, return empty list

This commit is contained in:
Jon Jenssen
2025-10-14 13:43:25 +02:00
committed by JJ
parent 5f2e2919c8
commit 9a71abd8af
@@ -832,9 +832,11 @@ const RigFault* RigMainGrid::findFaultFromCellIndexAndCellFace( size_t reservoir
//--------------------------------------------------------------------------------------------------
std::vector<size_t> RigMainGrid::findIntersectingCells( const cvf::BoundingBox& inputBB ) const
{
CVF_ASSERT( m_cellSearchTree.notNull() );
std::vector<size_t> cellIndices;
m_cellSearchTree->findIntersections( inputBB, &cellIndices );
if ( m_cellSearchTree.notNull() )
{
m_cellSearchTree->findIntersections( inputBB, &cellIndices );
}
return cellIndices;
}