mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-26 17:23:15 -05:00
null check before calling isDisposable (#17959)
This commit is contained in:
@@ -113,7 +113,7 @@ export class ConnectionStore {
|
||||
// Add the profile to the saved list, taking care to clear out the password field if necessary
|
||||
const savedProfile = forceWritePlaintextPassword ? profile : this.getProfileWithoutPassword(profile);
|
||||
const savedConnectionProfile = await this.saveProfileToConfig(savedProfile, matcher);
|
||||
if (isDisposable(savedProfile)) {
|
||||
if (savedProfile && isDisposable(savedProfile)) {
|
||||
savedProfile.dispose();
|
||||
}
|
||||
profile.groupId = savedConnectionProfile.groupId;
|
||||
|
||||
Reference in New Issue
Block a user