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

jvergara
09.07.2008 49ccc9d13a1cfdd33e0e833ee0a36800b0c3d755
Fix for issue 3334 (NullPointerException when upgrading from build 15 to 16)

Check that the application is not null in ServerController (in the case of the upgrader the application is null).
1 files modified
6 ■■■■ changed files
opends/src/quicksetup/org/opends/quicksetup/util/ServerController.java 6 ●●●● patch | view | raw | blame | history
opends/src/quicksetup/org/opends/quicksetup/util/ServerController.java
@@ -403,7 +403,11 @@
          boolean connected = false;
          Configuration config = installation.getCurrentConfiguration();
          int port = config.getPort();
          String hostName = application.getUserData().getHostName();
          String hostName = null;
          if (application != null)
          {
            hostName = application.getUserData().getHostName();
          }
          if (hostName == null)
          {
            hostName = "localhost";