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

jvergara
09.07.2008 39f588af3aeaa6e724526e69e9c37dfb225fda98
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
opendj-sdk/opends/src/quicksetup/org/opends/quicksetup/util/ServerController.java 6 ●●●● patch | view | raw | blame | history
opendj-sdk/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";