mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Guard against not having geomMechData
This commit is contained in:
parent
238c783b26
commit
665d233c38
@ -111,7 +111,11 @@ void RivGeoMechVizLogic::scheduleGeometryRegen(RivCellSetEnum geometryType)
|
|||||||
{
|
{
|
||||||
this->scheduleRegenOfDirectlyDependentGeometry(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)
|
for (int fIdx = -1; fIdx < frameCount; ++fIdx)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user