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

Jean-Noël Rouvignac
17.58.2016 cd69b98429c1f3365968fce5c7e1a19b694fb8b5
OPENDJ-3256 NPE from dsreplication enable

Do not call DN.valueOf(null)
1 files modified
3 ■■■■ changed files
opendj-server-legacy/src/main/java/org/opends/server/tools/dsreplication/ReplicationCliMain.java 3 ●●●● patch | view | raw | blame | history
opendj-server-legacy/src/main/java/org/opends/server/tools/dsreplication/ReplicationCliMain.java
@@ -2362,7 +2362,8 @@
      pwdFile = getPwdFile();
    }
    serverCI.initializeGlobalArguments(host, port, adminUid, DN.valueOf(bindDn), pwd, pwdFile);
    final DN bindDN = bindDn != null ? DN.valueOf(bindDn) : null;
    serverCI.initializeGlobalArguments(host, port, adminUid, bindDN, pwd, pwdFile);
    return doNotDisplayFirstError;
  }