RuiMainWindow. Null pointer guard

This commit is contained in:
Bjørn Erik Jensen
2018-02-14 14:49:28 +01:00
parent 22ba541145
commit 0e53c4b8bd

View File

@@ -773,7 +773,7 @@ void RiuMainWindow::refreshAnimationActions()
else
{
RimEclipseView * activeRiv = dynamic_cast<RimEclipseView*>(activeView);
if ( activeRiv->currentGridCellResults() )
if ( activeRiv && activeRiv->currentGridCellResults() )
{
timeStepStrings.push_back(tr("Static Property"));
}