From c88c9096558e8b60d2125eb64a74cf4bd1f7ae24 Mon Sep 17 00:00:00 2001 From: mpa Date: Fri, 26 Sep 2014 11:26:08 +0400 Subject: [PATCH] Added check for the existence of the study during its closing --- src/SMESHGUI/SMESHGUI.cxx | 2 ++ 1 file changed, 2 insertions(+) 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 ); } -- 2.39.2