Guard against not having geomMechData

This commit is contained in:
Jacob Støren 2015-09-13 08:39:26 +02:00
parent 238c783b26
commit 665d233c38

View File

@ -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)
{