diff --git a/src/jarContentProvider.ts b/src/jarContentProvider.ts index 9beba7e..9af3399 100644 --- a/src/jarContentProvider.ts +++ b/src/jarContentProvider.ts @@ -19,7 +19,7 @@ export class JarContentProvider implements vscode.TextDocumentContentProvider { fs.readFile(pathToJar, (err, data) => { let zip = new JSZip(); zip.loadAsync(data).then((new_zip) => { - new_zip.file(pathToFileInJar).async("text").then((value) => { + new_zip.file(pathToFileInJar)?.async("text").then((value) => { resolve(value); }) })