mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Janitor: Check if bounding box is valid before use
This commit is contained in:
parent
57cd46c4e2
commit
73551b0ec8
@ -767,10 +767,11 @@ caf::AppEnum<RiaDefines::EclipseUnitSystem> RimWellPathCollection::findUnitSyste
|
||||
wellPathBoundingBox.add( wellPathPoint );
|
||||
}
|
||||
|
||||
if ( caseBoundingBox.intersects( wellPathBoundingBox ) )
|
||||
if ( wellPathBoundingBox.isValid() && caseBoundingBox.isValid() && caseBoundingBox.intersects( wellPathBoundingBox ) )
|
||||
{
|
||||
return eclipseCaseData->unitsType();
|
||||
}
|
||||
|
||||
return RiaDefines::EclipseUnitSystem::UNITS_UNKNOWN;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user