Salome HOME
Fix regression of doc/salome/examples/prism_3d_algo.py
[modules/smesh.git] / src / SMESHGUI / SMESHGUI_Utils.cxx
index 22e71be8a9b130e23d45df1d6e26a3ab933687ee..21f74593fbde626c20cdcba8a1061971d4209417 100644 (file)
@@ -280,7 +280,7 @@ namespace SMESH
   void ModifiedMesh (_PTR(SObject) theSObject, bool theIsNotModif, bool isEmptyMesh)
   {
     _PTR(Study) aStudy = GetActiveStudyDocument();
-    if (aStudy->GetProperties()->IsLocked())
+    if ( !aStudy || aStudy->GetProperties()->IsLocked() )
       return;
 
     _PTR(StudyBuilder) aBuilder = aStudy->NewBuilder();