mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-18 01:25:37 -05:00
Add a check for an undefined model when creating the connection dialog model. (#21953)
This commit is contained in:
@@ -415,7 +415,7 @@ export class ConnectionDialogService implements IConnectionDialogService {
|
||||
}
|
||||
|
||||
let newProfile = new ConnectionProfile(this._capabilitiesService, model || providerName);
|
||||
if (!model.password) {
|
||||
if (model && !model.password) {
|
||||
try {
|
||||
await this._connectionManagementService.addSavedPassword(newProfile);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user