Guard nullpointer crash

This commit is contained in:
Magne Sjaastad committed 2024-06-05 14:35:01 +02:00
1 parent 3b5621a6aa
commit 27339a91fa
1 file changed
+1 -1
@@ -537,7 +537,7 @@ void RimIntersectionCollection::defineEditorAttribute( const caf::PdmFieldHandle
{
RimEclipseView* eclView = eclipseView();
if ( eclView )
if ( eclView && eclView->mainGrid() )
{
const cvf::BoundingBox bb = eclView->mainGrid()->boundingBox();