Fix null ref in contributed tree views (#20138) (#20139)

(cherry picked from commit 1367f29a8a)
This commit is contained in:
Charles Gagnon
2022-07-21 13:49:39 -07:00
committed by GitHub
parent 1b21924c72
commit f358261a2f

View File

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