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/client/spi/PropertySet.java
@@ -332,11 +332,11 @@
      throw PropertyException.propertyIsSingleValuedException(d);
    }
    if (values.isEmpty() && d.hasOption(PropertyOption.MANDATORY)) {
      // But only if there are no default values.
      if (property.getDefaultValues().isEmpty()) {
        throw PropertyException.propertyIsMandatoryException(d);
      }
    if (values.isEmpty()
        && d.hasOption(PropertyOption.MANDATORY)
        // But only if there are no default values.
        && property.getDefaultValues().isEmpty()) {
      throw PropertyException.propertyIsMandatoryException(d);
    }
    // Validate each value.