Skip to content

Commit

Permalink
Fix returning false if no entries
Browse files Browse the repository at this point in the history
Signed-off-by: Gavin Halliday <[email protected]>
  • Loading branch information
ghalliday committed Jun 27, 2024
1 parent 0682e1b commit 56de032
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions common/workunit/workunit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8748,9 +8748,12 @@ bool CLocalWorkUnit::getSummary(SummaryType type, SummaryMap &map) const
StringArray s;
{
CriticalBlock block(crit);
const char *list = p->queryProp(xpath);
if (!list)
IPropertyTree * match = p->queryPropTree(xpath);
if (!match)
return false;
const char *list = match->queryProp(nullptr);
if (!list)
return true;
s.appendList(list, "\n");
}
ForEachItemIn(idx, s)
Expand Down

0 comments on commit 56de032

Please sign in to comment.