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;