diff --git a/ApplicationCode/ModelVisualization/Intersections/RivIntersectionPartMgr.cpp b/ApplicationCode/ModelVisualization/Intersections/RivIntersectionPartMgr.cpp index 4f11900fd8..a94c9f0f54 100644 --- a/ApplicationCode/ModelVisualization/Intersections/RivIntersectionPartMgr.cpp +++ b/ApplicationCode/ModelVisualization/Intersections/RivIntersectionPartMgr.cpp @@ -1035,9 +1035,10 @@ cvf::ref RivIntersectionPartMgr::createHexGridI RimGeoMechView* geoView; m_rimCrossSection->firstAncestorOrThisOfType(geoView); - if (geoView) + if (geoView && geoView->femParts() && geoView->femParts()->partCount()) { RigFemPart* femPart = geoView->femParts()->part(0); + return new RivFemIntersectionGrid(femPart); }