From ee7d84bb03eb4dce1b92401bd1d88d5607beabae Mon Sep 17 00:00:00 2001 From: Yash Suthar Date: Mon, 29 Dec 2025 22:05:01 +0530 Subject: [PATCH] Fix : added empty link check to prevent null entry in document link map (#26406) Signed-off-by: Yash Suthar --- src/App/PropertyLinks.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/App/PropertyLinks.cpp b/src/App/PropertyLinks.cpp index 87a804869f..f136a1ba55 100644 --- a/src/App/PropertyLinks.cpp +++ b/src/App/PropertyLinks.cpp @@ -4552,7 +4552,7 @@ PropertyXLink::getDocumentInList(App::Document* doc) { std::map> 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];