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

matthew_swift
08.28.2010 8cf467249a3cdfdab500aecd7b4dfaadd9f2c1bb
sdk/src/org/opends/sdk/ldif/LDIFEntryWriter.java
@@ -22,7 +22,7 @@
 * CDDL HEADER END
 *
 *
 *      Copyright 2009 Sun Microsystems, Inc.
 *      Copyright 2009-2010 Sun Microsystems, Inc.
 */
package org.opends.sdk.ldif;
@@ -341,9 +341,16 @@
      final String attributeDescription = attribute
          .getAttributeDescriptionAsString();
      for (final ByteString value : attribute)
      if (attribute.isEmpty())
      {
        writeKeyAndValue(attributeDescription, value);
        writeKeyAndValue(attributeDescription, ByteString.empty());
      }
      else
      {
        for (final ByteString value : attribute)
        {
          writeKeyAndValue(attributeDescription, value);
        }
      }
    }