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

Signed-off-by: Yash Suthar <[email protected]>
This commit is contained in:
Yash Suthar
2025-12-29 17:35:01 +01:00
committed by GitHub
parent 1002bcb398
commit ee7d84bb03
+1 -1
View File
@@ -4552,7 +4552,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];