mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-19 09:35:36 -05:00
null check before calling isDisposable (#17959)
This commit is contained in:
@@ -128,7 +128,7 @@ export class TreeUpdateUtils {
|
||||
const originalInput = tree.getInput();
|
||||
if (treeInput !== originalInput) {
|
||||
return tree.setInput(treeInput).then(async () => {
|
||||
if (isDisposable(originalInput)) {
|
||||
if (originalInput && isDisposable(originalInput)) {
|
||||
originalInput.dispose();
|
||||
}
|
||||
// Make sure to expand all folders that where expanded in the previous session
|
||||
|
||||
Reference in New Issue
Block a user