Regression Test: Guard null pointer access

This commit is contained in:
Magne Sjaastad committed 2022-06-27 19:25:27 +02:00
1 parent 55966ef6e8
commit a86abab3cb
2 files changed
+4 -2

No files matched your search

@@ -810,7 +810,7 @@ void RivWellPathPartMgr::buildWellPathParts( const caf::DisplayCoordTransform* d
double cellRadius = 15.0;
auto eclipseView = dynamic_cast<RimEclipseView*>( m_rimView.p() );
if ( eclipseView )
if ( eclipseView && eclipseView->mainGrid() )
{
double characteristicCellSize = eclipseView->mainGrid()->characteristicIJCellSize();
cellRadius = sphereRadiusFactor * characteristicCellSize;