Avoid trying to re-download everything if we cannot get the zip file name. Everything should work fine from the first time.
If it does not work, just throw an exception
| | |
| | | |
| | | if (in == null) |
| | | { |
| | | // Retry once |
| | | loader.start(true); |
| | | waitForLoader(maxRatio); |
| | | in = |
| | | Installer.class.getClassLoader() |
| | | .getResourceAsStream(getZipFileName()); |
| | | |
| | | if (in == null) |
| | | { |
| | | throw new InstallException(InstallException.Type.DOWNLOAD_ERROR, |
| | | getMsg("error-zipinputstreamnull"), null); |
| | | } |
| | | throw new InstallException(InstallException.Type.DOWNLOAD_ERROR, |
| | | getMsg("error-zipinputstreamnull"), null); |
| | | } |
| | | |
| | | |
| | | notifyListeners(getHtmlDone()); |
| | | return in; |
| | | } |