mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-27 15:41:00 -05:00
Add nullptr guard in case no valid main grid in view.
This commit is contained in:
1 parent
bf50c52433
commit
567d1185a1
1 file changed
+1
-1
@@ -1067,7 +1067,7 @@ void RimExtrudedCurveIntersection::defineEditorAttribute( const caf::PdmFieldHan
|
||||
{
|
||||
RimEclipseView* eclView = eclipseView();
|
||||
|
||||
if ( eclView )
|
||||
if ( eclView && eclView->mainGrid() )
|
||||
{
|
||||
const cvf::BoundingBox bb = eclView->mainGrid()->boundingBox();
|
||||
|
||||
|
||||
Reference in new issue
Block a user