fixed bug 2281 (#2309)

This commit is contained in:
wangyong
2025-07-09 17:22:04 +08:00
committed by GitHub
parent 55ac3d1aa5
commit 9bddd4457e
4 changed files with 20 additions and 5 deletions

View File

@@ -129,7 +129,7 @@ public abstract class BaseMapper implements SchemaMapper {
Map<MatchText, List<T>> matchResult = matchStrategy.match(chatQueryContext, terms,
chatQueryContext.getRequest().getDataSetIds());
List<T> matches = new ArrayList<>();
if (Objects.isNull(matchResult)) {
if (Objects.isNull(matchResult) || matchResult.isEmpty()) {
return matches;
}
Optional<List<T>> first = matchResult.entrySet().stream()