Skip to content

Commit 370fd06

Browse files
SLVSCODE-1096 check for undefined before binding creation
1 parent af87686 commit 370fd06

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/connected/binding.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ export class BindingService {
177177
}
178178

179179
isRelatedConnectionValid(connectionId: string) : boolean {
180-
return this.settingsService.getStatusForConnection(connectionId).success;
180+
return this.settingsService.getStatusForConnection(connectionId)?.success ?? false;
181181
}
182182

183183
async getBaseServerUrl(connectionId: string, serverType: ServerType): Promise<string> {

0 commit comments

Comments
 (0)