[Link] Fix SIGSEGV with LinkCopyOnChange=Tracking

This commit is contained in:
Florian Foinant-Willig
2024-03-12 21:47:07 +01:00
parent 5fc907d797
commit 6cec876a41

View File

@@ -319,6 +319,12 @@ App::DocumentObjectExecReturn *LinkBaseExtension::extensionExecute() {
syncCopyOnChange();
}
// the previous linked object could be deleted by syncCopyOnChange - #12281
linked = getTrueLinkedObject(true);
if(!linked) {
return new App::DocumentObjectExecReturn("Error in processing variable link");
}
PropertyPythonObject *proxy = nullptr;
if(getLinkExecuteProperty()
&& !boost::iequals(getLinkExecuteValue(), "none")