Salome HOME
INT PAL 52703: TC7.6.0: Show SIGSEGV when you try Update Study in NoteBook
[modules/gui.git] / 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();