Fix null ref in contributed tree views (#20138)

This commit is contained in:
Charles Gagnon
2022-07-21 12:26:22 -07:00
committed by GitHub
parent dc7522c661
commit 1367f29a8a

View File

@@ -197,7 +197,7 @@ export class TreeView extends Disposable implements ITreeView {
this._onDidChangeEmpty.fire();
}
}
return children;
return children ?? [];
}
};
if (this._dataProvider.onDidChangeEmpty) {