mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Unwrap io exception and throw it to the caller (EA-68913)
This commit is contained in:
@@ -186,7 +186,15 @@ public class ZipHandler extends ArchiveHandler {
|
||||
@NotNull
|
||||
@Override
|
||||
public byte[] contentsToByteArray(@NotNull String relativePath) throws IOException {
|
||||
FileAccessorCache.Handle<ZipFile> zipRef = ourZipFileFileAccessorCache.get(this);
|
||||
FileAccessorCache.Handle<ZipFile> zipRef;
|
||||
|
||||
try {
|
||||
zipRef = ourZipFileFileAccessorCache.get(this);
|
||||
} catch (RuntimeException ex) {
|
||||
final Throwable cause = ex.getCause();
|
||||
if (cause instanceof IOException) throw (IOException)cause;
|
||||
throw ex;
|
||||
}
|
||||
ZipFile zip = zipRef.get();
|
||||
try {
|
||||
ZipEntry entry = zip.getEntry(relativePath);
|
||||
|
||||
Reference in New Issue
Block a user