]> SALOME platform Git repositories - modules/shaper.git/blobdiff - src/Model/Model_BodyBuilder.cpp
Salome HOME
Fix for the issue #2248 and issue #2251 : same curves sketch edges (splitted to make...
[modules/shaper.git] / src / Model / Model_BodyBuilder.cpp
index ad63bee3e9e1dc9dc5598558dd95326372b62e14..39fbea9b63c86f22653ac4c03ae89021e1ab1416 100755 (executable)
@@ -253,6 +253,8 @@ void  Model_BodyBuilder::storeWithoutNaming(const std::shared_ptr<GeomAPI_Shape>
 void Model_BodyBuilder::clean()
 {
   TDF_Label aLab = std::dynamic_pointer_cast<Model_Data>(data())->shapeLab();
+  if (aLab.IsNull())
+    return;
   std::map<int, TNaming_Builder*>::iterator aBuilder = myBuilders.begin();
   for(; aBuilder != myBuilders.end(); aBuilder++) {
     delete aBuilder->second;