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

jvergara
04.57.2008 8fe7c88b03f150d0a08a9d3ea8fcaadb8db7a67c
Fix for issue 3349 (fail to downgrade from build 16 to build 15)

Even if the error code we get from the process is not 0 (this can be caused because it got blocked or interrupted through the space return we send to the terminal) check that we have the build information before reporting an error.
1 files modified
22 ■■■■ changed files
opends/src/quicksetup/org/opends/quicksetup/BuildInformation.java 22 ●●●● patch | view | raw | blame | history
opends/src/quicksetup/org/opends/quicksetup/BuildInformation.java
@@ -99,7 +99,7 @@
            {
              try
              {
                Thread.sleep(5000);
                Thread.sleep(15000);
                if (!done[0])
                {
                  fOut.write(Constants.LINE_SEPARATOR.getBytes());
@@ -143,9 +143,23 @@
        }
        else
        {
          throw new ApplicationException(
              ReturnCode.START_ERROR,
              INFO_ERROR_CREATING_BUILD_INFO_MSG.get(sb.toString()), null);
          try
          {
            checkNotNull(bi.values,
                NAME,
                MAJOR_VERSION,
                MINOR_VERSION,
                POINT_VERSION,
                REVISION_NUMBER);
          }
          catch (Throwable t)
          {
            // We did not get the required information.
            throw new ApplicationException(
                ReturnCode.START_ERROR,
                INFO_ERROR_CREATING_BUILD_INFO_MSG.get(sb.toString()),
                null);
          }
        }
      }
    } catch (IOException e) {