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

Jean-Noel Rouvignac
18.26.2015 ca669ae54f86dbeea277280690584d9f591c7571
opendj-server-legacy/src/main/java/org/opends/server/admin/server/ServerManagementContext.java
@@ -874,18 +874,17 @@
      pvalues.add(value);
    }
    if (pvalues.isEmpty() && pd.hasOption(PropertyOption.MANDATORY)) {
      // The values maybe empty because of a previous exception.
      if (exception == null) {
        exception = PropertyException.propertyIsMandatoryException(pd);
      }
    if (pvalues.isEmpty()
        && pd.hasOption(PropertyOption.MANDATORY)
        // The values maybe empty because of a previous exception.
        && exception == null) {
      exception = PropertyException.propertyIsMandatoryException(pd);
    }
    if (exception != null) {
      throw exception;
    } else {
      return pvalues;
    }
    return pvalues;
  }