Fix crash in intersection coloring wne geometry is missing

This commit is contained in:
Jacob Støren 2019-11-21 12:43:26 +01:00
parent 10257e3bfb
commit c1df283369

View File

@ -55,7 +55,7 @@ void RivIntersectionResultsColoringTools::updateCellResultColorStatic(
cvf::Part* intersectionFacesPart,
cvf::Vec2fArray* intersectionFacesTextureCoords )
{
if ( !intersectionGeomGenIF->isAnyGeometryPresent() ) return;
if ( !intersectionGeomGenIF || !intersectionGeomGenIF->isAnyGeometryPresent() ) return;
RimGridView* gridView = nullptr;
rimIntersectionHandle->firstAncestorOrThisOfType( gridView );