mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-25 17:23:10 -05:00
null check before calling isDisposable (#17959)
This commit is contained in:
@@ -116,7 +116,7 @@ export class ConnectionConfig {
|
||||
|
||||
return this.configurationService.updateValue(CONNECTIONS_CONFIG_KEY, profiles, ConfigurationTarget.USER).then(() => {
|
||||
profiles.forEach(p => {
|
||||
if (isDisposable(p)) {
|
||||
if (p && isDisposable(p)) {
|
||||
p.dispose();
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user