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

jdemendi
04.53.2008 bf135c5c0f1c9b949de97f97092780f8c3d9a8a2
opends/src/server/org/opends/server/core/networkgroups/NetworkGroupConfigManager.java
@@ -28,6 +28,9 @@
import static org.opends.messages.CoreMessages.*;
import static org.opends.server.loggers.ErrorLogger.logError;
import java.util.ArrayList;
import java.util.List;
import java.util.SortedSet;
@@ -332,7 +335,18 @@
    {
      WorkflowImpl workflowImpl =
        (WorkflowImpl) WorkflowImpl.getWorkflow(workflowID);
      networkGroup.registerWorkflow(workflowImpl);
      if (workflowImpl == null)
      {
        // The workflow does not exist, log an error message
        // and skip the workflow
        Message message = INFO_ERR_WORKFLOW_DOES_NOT_EXIST.get(
          workflowID, networkGroupId);
        logError(message);
      }
      else
      {
        networkGroup.registerWorkflow(workflowImpl);
      }
    }
    // register the root DSE workflow with the network group