[Gui] Fix Seg Fault when deleting a Link Array

This commit is contained in:
Syres916
2025-03-26 13:34:15 +00:00
committed by Benjamin Nauck
parent 26c7a6c302
commit 85410a2816

View File

@@ -2390,7 +2390,7 @@ bool ViewProviderLink::onDelete(const std::vector<std::string> &) {
}
auto link = getObject<App::Link>();
if (link->ElementCount.getValue() != 0) {
if (link && link->ElementCount.getValue() != 0) {
auto doc = link->getDocument();
auto elements = link->ElementList.getValues();
for (auto element : elements) {