diff --git a/ApplicationCode/GeoMech/GeoMechVisualization/RivGeoMechVizLogic.cpp b/ApplicationCode/GeoMech/GeoMechVisualization/RivGeoMechVizLogic.cpp index 4fef3878e9..5c98304f04 100644 --- a/ApplicationCode/GeoMech/GeoMechVisualization/RivGeoMechVizLogic.cpp +++ b/ApplicationCode/GeoMech/GeoMechVisualization/RivGeoMechVizLogic.cpp @@ -111,7 +111,11 @@ void RivGeoMechVizLogic::scheduleGeometryRegen(RivCellSetEnum geometryType) { this->scheduleRegenOfDirectlyDependentGeometry(geometryType); - int frameCount = m_geomechView->geoMechCase()->geoMechData()->femPartResults()->frameCount(); + int frameCount = 0; + if (m_geomechView->geoMechCase()->geoMechData()) + { + frameCount = m_geomechView->geoMechCase()->geoMechData()->femPartResults()->frameCount(); + } for (int fIdx = -1; fIdx < frameCount; ++fIdx) {