From 590cdb9059087751a13baa38264779e7f91df2a7 Mon Sep 17 00:00:00 2001 From: mpv Date: Thu, 20 Feb 2020 11:42:08 +0300 Subject: [PATCH] Fix for the issue #18736 : EDF - crash when dumping (python) from a HDF file made with SALOME windows Fixed crash if revolution is referenced to deleted objects --- src/ModelAPI/ModelAPI_Tools.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ModelAPI/ModelAPI_Tools.cpp b/src/ModelAPI/ModelAPI_Tools.cpp index 413f52c4c..8714aca62 100644 --- a/src/ModelAPI/ModelAPI_Tools.cpp +++ b/src/ModelAPI/ModelAPI_Tools.cpp @@ -645,6 +645,7 @@ std::pair getDefaultName(const std::shared_ptrsecond.size() > 1 || (aRefIt->second.size() == 1 && + aRefIt->second.front().get() && aRefIt->second.front()->groupName() == ModelAPI_ResultBody::group()); if (isBody && (isMainArg || aFoundRef == aReferences.end() || aData->isPrecedingAttribute(aRefIt->first, aFoundRef->first))) -- 2.39.2