From cb16f3c3222148eefdbd3de36fc49bdd82223714 Mon Sep 17 00:00:00 2001 From: Magne Sjaastad Date: Mon, 11 Jan 2016 09:23:09 +0100 Subject: [PATCH] Fixed issues when loading Odb-projects into ResInsight with no Odb support --- .../GeoMech/GeoMechVisualization/RivGeoMechVizLogic.cpp | 2 +- ApplicationCode/ProjectDataModel/RimViewController.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ApplicationCode/GeoMech/GeoMechVisualization/RivGeoMechVizLogic.cpp b/ApplicationCode/GeoMech/GeoMechVisualization/RivGeoMechVizLogic.cpp index ba58d3d236..f15c8bb79d 100644 --- a/ApplicationCode/GeoMech/GeoMechVisualization/RivGeoMechVizLogic.cpp +++ b/ApplicationCode/GeoMech/GeoMechVisualization/RivGeoMechVizLogic.cpp @@ -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(); } diff --git a/ApplicationCode/ProjectDataModel/RimViewController.cpp b/ApplicationCode/ProjectDataModel/RimViewController.cpp index b177d98674..f1ad0f2f3b 100644 --- a/ApplicationCode/ProjectDataModel/RimViewController.cpp +++ b/ApplicationCode/ProjectDataModel/RimViewController.cpp @@ -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);