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:
committed by
Max Wilfinger
parent
e95b18012e
commit
5e9b228ce1
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user