@@ -87,12 +87,20 @@ jarFileURLConnection.setUseCaches(useCaches); entryName = getEntryName(); } public JarFile getJarFile() throws IOException { + try { connect(); return jarFile; + } catch (IOException e) { + if (jarFile != null) { + return jarFile; + } else { + throw e; + } + } } public JarEntry getJarEntry() throws IOException { connect(); return jarEntry;