mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#7778 Check for valid pointer to main window before use
This commit is contained in:
@@ -61,7 +61,10 @@ void RicExitApplicationFeature::onActionTriggered( bool isChecked )
|
||||
topLevelWidget->hide();
|
||||
}
|
||||
// Close just the main window, it'll take care of closing the plot window
|
||||
app->mainWindow()->close();
|
||||
if ( app->mainWindow() )
|
||||
{
|
||||
app->mainWindow()->close();
|
||||
}
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user