]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
Added check for the existence of the study during its closing
authormpa <mpa@opencascade.com>
Fri, 26 Sep 2014 07:26:08 +0000 (11:26 +0400)
committermpa <mpa@opencascade.com>
Fri, 26 Sep 2014 07:26:08 +0000 (11:26 +0400)
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 );
 }