Salome HOME
Issue #20456: Another dump study fails
[modules/shaper.git] / src / ModelHighAPI / ModelHighAPI_Dumper.cpp
index 324b827d0357be534a31ffe7b9e144975296c157..cb2323165a7bb9ca24b33b025f69f80418ee284c 100644 (file)
@@ -1457,6 +1457,8 @@ ModelHighAPI_Dumper& ModelHighAPI_Dumper::operator<<(
     bool isAdded = false;
     std::list<ObjectPtr>::const_iterator anIt = aList.begin();
     for (; anIt != aList.end(); ++anIt) {
+      if (!(*anIt))
+        continue;
       if (!isDumped(ModelAPI_Feature::feature(*anIt)))
         break; // stop if the object is not dumped yet (parent feature should be postponed)