mirror of
https://github.com/OPM/ResInsight.git
synced 2026-09-03 20:53:13 -05:00
#955 Guard nullptr access
This commit is contained in:
@@ -52,7 +52,10 @@ void RicViewZoomAllFeature::onActionTriggered(bool isChecked)
|
||||
if (dynamic_cast<RiuMainWindow*>(topLevelWidget))
|
||||
{
|
||||
RimViewWindow* viewWindow = RiaApplication::instance()->activeReservoirView();
|
||||
viewWindow->zoomAll();
|
||||
if (viewWindow)
|
||||
{
|
||||
viewWindow->zoomAll();
|
||||
}
|
||||
}
|
||||
else if (dynamic_cast<RiuPlotMainWindow*>(topLevelWidget))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user