Guard nullpointer crash

This commit is contained in:
Magne Sjaastad 2024-06-04 15:07:23 +02:00
parent 3b5621a6aa
commit 27339a91fa

View File

@ -537,7 +537,7 @@ void RimIntersectionCollection::defineEditorAttribute( const caf::PdmFieldHandle
{ {
RimEclipseView* eclView = eclipseView(); RimEclipseView* eclView = eclipseView();
if ( eclView ) if ( eclView && eclView->mainGrid() )
{ {
const cvf::BoundingBox bb = eclView->mainGrid()->boundingBox(); const cvf::BoundingBox bb = eclView->mainGrid()->boundingBox();