Salome HOME
22487: EDF 2778 SMESH: Add a GUI for the flat elements generation
[modules/smesh.git] / src / SMESH_I / SMESH_Mesh_i.cxx
index f2e1ca4c83c1494ddf71d2d2d2e78f79b2963c10..2b230a593d9dc5f9e1182fd31bdc8d88fef09bca 100644 (file)
@@ -199,7 +199,8 @@ void SMESH_Mesh_i::SetShape( GEOM::GEOM_Object_ptr theShapeObject )
   // to track changes of GEOM groups
   SMESH::SMESH_Mesh_var mesh = _this();
   addGeomGroupData( theShapeObject, mesh );
-  _mainShapeTick = theShapeObject->GetTick();
+  if ( !CORBA::is_nil( theShapeObject ))
+    _mainShapeTick = theShapeObject->GetTick();
 }
 
 //================================================================================