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

Nicolas Capponi
07.06.2014 c01c421b26e6409febd6af1db1c9db11b7b347a4
opendj3-server-dev/src/guitools/org/opends/guitools/controlpanel/ui/TableViewEntryPanel.java
@@ -22,6 +22,7 @@
 *
 *
 *      Copyright 2008-2010 Sun Microsystems, Inc.
 *      Portions Copyright 2014 ForgeRock AS
 */
package org.opends.guitools.controlpanel.ui;
@@ -297,10 +298,10 @@
    StringBuilder sb = new StringBuilder();
    try
    {
      DN oldDN = DN.decode(searchResult.getDN());
      if (oldDN.getNumComponents() > 0)
      DN oldDN = DN.valueOf(searchResult.getDN());
      if (oldDN.size() > 0)
      {
        RDN rdn = oldDN.getRDN();
        RDN rdn = oldDN.rdn();
        List<AttributeType> attributeTypes = new ArrayList<AttributeType>();
        List<String> attributeNames = new ArrayList<String>();
        List<AttributeValue> attributeValues = new ArrayList<AttributeValue>();
@@ -379,7 +380,7 @@
            }
          }
        }
        DN parent = oldDN.getParent();
        DN parent = oldDN.parent();
        if (attributeTypes.size() > 0)
        {
          DN newDN;
@@ -391,7 +392,7 @@
          }
          else
          {
            newDN = parent.concat(newRDN);
            newDN = parent.child(newRDN);
          }
          sb.append(newDN.toString());
        }