From d65908e277e9440051ec82fc08cf7bdd0c2b1532 Mon Sep 17 00:00:00 2001 From: imn Date: Wed, 31 Aug 2016 17:57:43 +0300 Subject: [PATCH] INT PAL 52703: TC7.6.0: Show SIGSEGV when you try Update Study in NoteBook --- src/SalomeApp/SalomeApp_Application.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/SalomeApp/SalomeApp_Application.cxx b/src/SalomeApp/SalomeApp_Application.cxx index dea5dccc2..fa6c6ab7b 100644 --- a/src/SalomeApp/SalomeApp_Application.cxx +++ b/src/SalomeApp/SalomeApp_Application.cxx @@ -2028,7 +2028,8 @@ bool SalomeApp_Application::onRestoreStudy( const QString& theDumpScript, { #ifndef DISABLE_PYCONSOLE _PTR(Study) aStudyDS = newStudy->studyDS(); - app->getNoteBook()->Init( aStudyDS ); + if ( app->getNoteBook() ) + app->getNoteBook()->Init( aStudyDS ); newStudy->updateFromNotebook(theStudyName, theIsStudySaved); newStudy->Modified(); updateDesktopTitle(); -- 2.39.2