提交 3c19842c 编写于 作者: R Rob Lourens

Fix #53840 - work around unlikely NPE

上级 d30631de
......@@ -693,7 +693,10 @@ export class SettingsEditor2 extends BaseEditor {
// Count unique results
const counts = {};
const filterResult = results[SearchResultIdx.Local];
counts['filterResult'] = filterResult.filterMatches.length;
if (filterResult) {
counts['filterResult'] = filterResult.filterMatches.length;
}
if (nlpResult) {
counts['nlpResult'] = nlpResult.filterMatches.length;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册