Skip to content

Commit

Permalink
'fix #1955: fix race condition that might cause FileNotFounfException
Browse files Browse the repository at this point in the history
  • Loading branch information
lfcnassif committed Oct 29, 2023
1 parent ad61a6f commit 17636d1
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -158,9 +158,9 @@ public SeekableInputStream getSeekableInputStream(String path) throws IOExceptio
}
synchronized (filesCache) {
tmp = filesCache.get(path);
}
if (tmp != null) {
return new SeekableFileInputStream(tmp.toFile());
if (tmp != null) {
return new SeekableFileInputStream(tmp.toFile());
}
}

ZipArchiveEntry zae;
Expand Down

0 comments on commit 17636d1

Please sign in to comment.