Fix a surface collection crash in RimGeoMechView

This commit is contained in:
Gaute Lindkvist
2020-01-22 13:18:33 +01:00
parent fffc36eadb
commit bff2abe85b
2 changed files with 6 additions and 3 deletions

View File

@@ -1858,7 +1858,7 @@ bool RimEclipseView::isTimeStepDependentDataVisible() const
return true;
}
if ( this->surfaceInViewCollection()->hasAnyActiveSeparateResults() )
if ( this->surfaceInViewCollection() && this->surfaceInViewCollection()->hasAnyActiveSeparateResults() )
{
return true;
}