mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-17 02:51:36 -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);
|
let newProfile = new ConnectionProfile(this._capabilitiesService, model || providerName);
|
||||||
if (!model.password) {
|
if (model && !model.password) {
|
||||||
try {
|
try {
|
||||||
await this._connectionManagementService.addSavedPassword(newProfile);
|
await this._connectionManagementService.addSavedPassword(newProfile);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user