]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
INT PAL 52703: TC7.6.0: Show SIGSEGV when you try Update Study in NoteBook imn/52703
authorimn <imn@opencascade.com>
Wed, 31 Aug 2016 14:57:43 +0000 (17:57 +0300)
committerimn <imn@opencascade.com>
Wed, 31 Aug 2016 14:57:43 +0000 (17:57 +0300)
src/SalomeApp/SalomeApp_Application.cxx

index dea5dccc20ca24e3f1d64f1ce18256d8b73ac03c..fa6c6ab7bfa2ce31eb2229e8ab84f026bebb4700 100644 (file)
@@ -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();