Salome HOME
Added check for the existence of the study during its closing
[modules/smesh.git] / src / SMESHGUI / SMESHGUI.cxx
index 7a02219d21a270072e40d94192c0ffaa03d82a04..f3dc7de1c70e9ef0883185f99326bd6f1c0a06f1 100644 (file)
@@ -4768,6 +4768,8 @@ bool SMESHGUI::deactivateModule( SUIT_Study* study )
 
 void SMESHGUI::studyClosed( SUIT_Study* s )
 {
+  if( !s )
+    return;
   SMESH::RemoveVisuData( s->id() );
   SalomeApp_Module::studyClosed( s );
 }