Add a check for an undefined model when creating the connection dialog model. (#21953)

This commit is contained in:
Cory Rivera
2023-02-15 14:23:15 -08:00
committed by GitHub
parent de5e81a157
commit f7fa9bece3

View File

@@ -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);
}