From: imn Date: Wed, 31 Aug 2016 14:57:43 +0000 (+0300) Subject: INT PAL 52703: TC7.6.0: Show SIGSEGV when you try Update Study in NoteBook X-Git-Tag: V8_1_0rc1~13 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=refs%2Fheads%2Fimn%2F52703;p=modules%2Fgui.git INT PAL 52703: TC7.6.0: Show SIGSEGV when you try Update Study in NoteBook --- 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();