mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#955 Guard nullptr access
This commit is contained in:
parent
6fcc91cdcd
commit
94ab7b7923
@ -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))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user