From 08a389f3d1083f545d3e36ba25b7bc4e0f11daf3 Mon Sep 17 00:00:00 2001 From: Egor Ushakov Date: Fri, 2 Nov 2018 19:13:38 +0300 Subject: [PATCH] no need to throw an exception --- .../compiler/instrumentation/InstrumentationClassFinder.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/java/compiler/instrumentation-util/src/com/intellij/compiler/instrumentation/InstrumentationClassFinder.java b/java/compiler/instrumentation-util/src/com/intellij/compiler/instrumentation/InstrumentationClassFinder.java index 3502b4971d1e..5e85b5e925dc 100644 --- a/java/compiler/instrumentation-util/src/com/intellij/compiler/instrumentation/InstrumentationClassFinder.java +++ b/java/compiler/instrumentation-util/src/com/intellij/compiler/instrumentation/InstrumentationClassFinder.java @@ -666,10 +666,9 @@ public class InstrumentationClassFinder { private ZipFile doGetZipFile() throws IOException { if (FILE_PROTOCOL.equals(myURL.getProtocol())) { String s = unescapePercentSequences(myURL.getFile().replace('/', File.separatorChar)); - if (!new File(s).exists()) { - throw new FileNotFoundException(s); + if (new File(s).exists()) { + return new ZipFile(s); } - return new ZipFile(s); } return null;