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

Jean-Noel Rouvignac
09.01.2015 5cd7bdbbda0fa9f1aa6e12d9171c3811b73feb07
opendj-server-legacy/src/main/java/org/opends/server/util/LDIFReader.java
@@ -1454,13 +1454,10 @@
    for (String value : objectClasses.values()) {
      builder.add(value);
    }
    Map<AttributeType, List<Attribute>> attributes =
        toAttributesMap(attrBuilders);
    Map<AttributeType, List<Attribute>> attributes = toAttributesMap(attrBuilders);
    if (attributes.get(ocType) == null)
    {
      List<Attribute> ocAttrList = new ArrayList<>(1);
      ocAttrList.add(builder.toAttribute());
      attributes.put(ocType, ocAttrList);
      attributes.put(ocType, builder.toAttributeList());
    }
    return new AddChangeRecordEntry(entryDN, attributes);