diff --git a/src/App/Document.cpp b/src/App/Document.cpp index 04034ad98b..c4c31562ef 100644 --- a/src/App/Document.cpp +++ b/src/App/Document.cpp @@ -3031,7 +3031,13 @@ void Document::breakDependency(DocumentObject* pcObject, bool clear) std::vector paths; pcObject->ExpressionEngine.getPathsToDocumentObject(it->second, paths); for (std::vector::iterator jt = paths.begin(); jt != paths.end(); ++jt) { - pcObject->ExpressionEngine.setValue(*jt, nullptr); + // When nullifying the expression handle case where an identifier lacks of the property + try { + pcObject->ExpressionEngine.setValue(*jt, nullptr); + } + catch (const Base::Exception& e) { + e.ReportException(); + } } } }