mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-08 09:08:48 +01:00
Fix #53840 - work around unlikely NPE
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user