Skip to content

Commit f3cc067

Browse files
committed
Missing check (microsoft#56170)
1 parent ba6a26f commit f3cc067

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

extensions/extension-editing/src/extensionLinter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ export class ExtensionLinter {
249249
private readPackageJsonInfo(folder: Uri, tree: JsonNode) {
250250
const engine = tree && findNodeAtLocation(tree, ['engines', 'vscode']);
251251
const repo = tree && findNodeAtLocation(tree, ['repository', 'url']);
252-
const uri = parseUri(repo.value);
252+
const uri = repo && parseUri(repo.value);
253253
const info: PackageJsonInfo = {
254254
isExtension: !!(engine && engine.type === 'string'),
255255
hasHttpsRepository: !!(repo && repo.type === 'string' && repo.value && uri && uri.scheme.toLowerCase() === 'https')

0 commit comments

Comments
 (0)