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

jdemendi
21.23.2009 e0a9730f97748fc26614bd7fd453dfa066bfbe79
use variables newSuperior and newRDN that might not be initialized
1 files modified
4 ■■■■ changed files
opends/src/server/org/opends/server/core/ModifyDNOperationBasis.java 4 ●●●● patch | view | raw | blame | history
opends/src/server/org/opends/server/core/ModifyDNOperationBasis.java
@@ -779,7 +779,7 @@
    {
      // Construct the new DN to use for the entry.
      DN parentDN = null;
      if (newSuperior == null)
      if (getNewSuperior() == null)
      {
        if (getEntryDN() != null)
        {
@@ -796,7 +796,7 @@
        setResultCode(ResultCode.UNWILLING_TO_PERFORM);
        appendErrorMessage(ERR_MODDN_NO_PARENT.get(String.valueOf(entryDN)));
      }
      newDN = parentDN.concat(newRDN);
      newDN = parentDN.concat(getNewRDN());
    }
    return newDN;
  }