no need to throw an exception

This commit is contained in:
Egor Ushakov
2018-11-06 12:11:25 +03:00
parent f96fdc1c0d
commit 08a389f3d1
@@ -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;