Skip to content

Commit 6875f50

Browse files
committed
Fix crash of extension when proxy settings address has wrong format
Signed-off-by: azerr <azerr@redhat.com>
1 parent 0b30585 commit 6875f50

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/settings/proxySettings.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ export function getProxySettings(): ProxySettings {
7575
return null;
7676
}
7777
const regexResult = HOST_AND_PORT_EXTRACTOR.exec(proxyAddress);
78-
if (!regexResult[1]) {
78+
if (!regexResult || !regexResult[1]) {
7979
return null;
8080
}
8181
const host: string = regexResult[1];

0 commit comments

Comments
 (0)