From 09259451d2c80b9ac546516d8c58babd2e4b4b68 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() {