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

ludovicp
28.55.2010 f9c1758fcc5ca282cbb06c2d4364b2aafda01e09
Fix issue triggered by verify-index with --clean option.
1 files modified
13 ■■■■ changed files
opends/src/server/org/opends/server/types/Entry.java 13 ●●●● patch | view | raw | blame | history
opends/src/server/org/opends/server/types/Entry.java
@@ -50,6 +50,7 @@
import org.opends.server.api.plugin.PluginResult;
import org.opends.server.core.DirectoryServer;
import org.opends.server.core.PluginConfigManager;
import org.opends.server.core.SubentryManager;
import org.opends.server.util.LDIFException;
import static org.opends.server.config.ConfigConstants.*;
@@ -3466,10 +3467,18 @@
      return;
    }
    SubentryManager manager =
            DirectoryServer.getSubentryManager();
    if(manager == null)
    {
      //Subentry manager may not have been initialized by
      //a component that doesn't require it.
      return;
    }
    // Get applicable collective subentries.
    List<SubEntry> collectiveAttrSubentries =
            DirectoryServer.getSubentryManager(
            ).getCollectiveSubentries(this);
            manager.getCollectiveSubentries(this);
    if ((collectiveAttrSubentries == null) ||
         collectiveAttrSubentries.isEmpty())
    {