mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-12 16:32:12 -05:00
Guard against not having geomMechData
This commit is contained in:
1 parent
238c783b26
commit
665d233c38
1 file changed
+5
-1
@@ -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)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user