Fixed issues when loading Odb-projects into ResInsight with no Odb support

This commit is contained in:
Magne Sjaastad committed 2016-01-11 10:08:47 +01:00
1 parent 4476e60816
commit cb16f3c322
2 files changed
+2 -2

No files matched your search

@@ -114,7 +114,7 @@ void RivGeoMechVizLogic::scheduleGeometryRegen(RivCellSetEnum geometryType)
this->scheduleRegenOfDirectlyDependentGeometry(geometryType);
int frameCount = 0;
if (m_geomechView->geoMechCase()->geoMechData())
if (m_geomechView->geoMechCase() && m_geomechView->geoMechCase()->geoMechData())
{
frameCount = m_geomechView->geoMechCase()->geoMechData()->femPartResults()->frameCount();
}
@@ -785,7 +785,7 @@ bool RimViewController::isRangeFilterMappingApliccable()
if (eclipseView && geomView)
{
if (eclipseView->eclipseCase()->reservoirData() && geomView->geoMechCase()->geoMechData())
if (eclipseView->eclipseCase()->reservoirData() && geomView->geoMechCase() && geomView->geoMechCase()->geoMechData())
{
RigMainGrid* eclGrid = eclipseView->eclipseCase()->reservoirData()->mainGrid();
RigFemPart* femPart = geomView->geoMechCase()->geoMechData()->femParts()->part(0);