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

Ludovic Poitou
16.29.2011 23cf07c2c64ba72f59b3257b9b91f4c8814b05ce
opends/src/server/org/opends/server/backends/LDIFBackend.java
@@ -23,6 +23,7 @@
 *
 *
 *      Copyright 2007-2008 Sun Microsystems, Inc.
 *      Portions Copyright 2011 ForgeRock AS
 */
package org.opends.server.backends;
@@ -637,19 +638,21 @@
        else
        {
          DN matchedDN = null;
          // BUG: parentDN can be null when entering the loop
          while (true)
          if (parentDN != null)
          {
            parentDN = parentDN.getParentDNInSuffix();
            if (parentDN == null)
            while (true)
            {
              break;
            }
              parentDN = parentDN.getParentDNInSuffix();
              if (parentDN == null)
              {
                break;
              }
            if (entryMap.containsKey(parentDN))
            {
              matchedDN = parentDN;
              break;
              if (entryMap.containsKey(parentDN))
              {
                matchedDN = parentDN;
                break;
              }
            }
          }