From 55f8d68b4efe3a6c4c0e50478070db45b260838e Mon Sep 17 00:00:00 2001 From: wmayer Date: Sun, 13 Mar 2022 17:24:07 +0100 Subject: [PATCH] PD: Fix coverity issue: * CID 350645: Uncaught exception --- src/Mod/PartDesign/App/ShapeBinder.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/Mod/PartDesign/App/ShapeBinder.cpp b/src/Mod/PartDesign/App/ShapeBinder.cpp index fec3633178..826919f988 100644 --- a/src/Mod/PartDesign/App/ShapeBinder.cpp +++ b/src/Mod/PartDesign/App/ShapeBinder.cpp @@ -356,7 +356,12 @@ SubShapeBinder::SubShapeBinder() } SubShapeBinder::~SubShapeBinder() { - clearCopiedObjects(); + try { + clearCopiedObjects(); + } + catch (const Base::ValueError& e) { + e.ReportException(); + } } void SubShapeBinder::setupObject() {