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

Jean-Noel Rouvignac
04.11.2014 1a584561ff6ab1c0eb766f2835bdeb6224fc7312
Fixing blocked nightly tests.
Problem was due to an NPE while deserializing StartECLSessionMsg: ByteArrayScanner.nextString(), can return null, while previous code was always creating an empty string when using the older API.

Thanks Nicolas Capponi for bisecting.


StartECLSessionMsg.java:
In ctor, added a null check to prevent NPE.
1 files modified
2 ■■■ changed files
opends/src/server/org/opends/server/replication/protocol/StartECLSessionMsg.java 2 ●●● patch | view | raw | blame | history
opends/src/server/org/opends/server/replication/protocol/StartECLSessionMsg.java
@@ -172,7 +172,7 @@
    crossDomainServerState = scanner.nextString();
    operationId = scanner.nextString();
    final String excludedDNsString = scanner.nextString();
    if (excludedDNsString.length() > 0)
    if (excludedDNsString != null && excludedDNsString.length() > 0)
    {
      Collections.addAll(excludedBaseDNs, excludedDNsString.split(";"));
    }