Skip to content

Commit

Permalink
Fix ZipFileStream
Browse files Browse the repository at this point in the history
file stream is closed
  • Loading branch information
CodeLtDave authored and Michael5601 committed May 13, 2024
1 parent 0196f11 commit 710983f
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,8 @@ private boolean isParent(String parent, String child) {

@Override
public InputStream openInputStream(int options, IProgressMonitor monitor) throws CoreException {
try (ZipInputStream in = new ZipInputStream(rootStore.openInputStream(EFS.NONE, monitor))) {
try {
ZipInputStream in = new ZipInputStream(rootStore.openInputStream(EFS.NONE, monitor));
ZipEntry entry = findEntry(path.toString(), in);
if (entry == null) {
throw new CoreException(Status.error("File not found: " + rootStore.toString()));
Expand Down

0 comments on commit 710983f

Please sign in to comment.