Fix : added empty link check to prevent null entry in document link map (#26406)

Signed-off-by: Yash Suthar <[email protected]>
(cherry picked from commit ee7d84bb03)
This commit is contained in:
Yash Suthar
2025-12-29 17:44:16 +01:00
committed by Max Wilfinger
parent e95b18012e
commit 5e9b228ce1
+1 -1
View File
@@ -4550,7 +4550,7 @@ PropertyXLink::getDocumentInList(App::Document* doc)
{
std::map<App::Document*, std::set<App::Document*>> ret;
for (auto& v : _DocInfoMap) {
if (!v.second->pcDoc || (doc && doc != v.second->pcDoc)) {
if (!v.second->pcDoc || (doc && doc != v.second->pcDoc) || v.second->links.empty()) {
continue;
}
auto& docs = ret[v.second->pcDoc];