From: mpa Date: Fri, 26 Sep 2014 07:26:08 +0000 (+0400) Subject: Added check for the existence of the study during its closing X-Git-Tag: V7_5_0a1~8 X-Git-Url: http://git.salome-platform.org/gitweb/?p=modules%2Fsmesh.git;a=commitdiff_plain;h=c88c9096558e8b60d2125eb64a74cf4bd1f7ae24 Added check for the existence of the study during its closing --- diff --git a/src/SMESHGUI/SMESHGUI.cxx b/src/SMESHGUI/SMESHGUI.cxx index 7a02219d2..f3dc7de1c 100644 --- a/src/SMESHGUI/SMESHGUI.cxx +++ b/src/SMESHGUI/SMESHGUI.cxx @@ -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 ); }