Skip to content

Commit

Permalink
Fixed issues when loading Odb-projects into ResInsight with no Odb su…
Browse files Browse the repository at this point in the history
…pport
  • Loading branch information
magnesj committed Jan 11, 2016
1 parent 4476e60 commit cb16f3c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down
2 changes: 1 addition & 1 deletion ApplicationCode/ProjectDataModel/RimViewController.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit cb16f3c

Please sign in to comment.