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 7a02219..f3dc7de 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 );
 }