mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

jvergara
20.40.2006 b54806bee744f31ebd2636b11a31d19387e931b6

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
1 files modified
15 ■■■■ changed files
opends/src/quicksetup/org/opends/quicksetup/installer/webstart/WebStartInstaller.java 15 ●●●● patch | view | raw | blame | history
opends/src/quicksetup/org/opends/quicksetup/installer/webstart/WebStartInstaller.java
@@ -292,20 +292,11 @@
    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;
  }