Program: 97184
Project: 97184
Buggy source:
@Override public Pair<IAtsAction,Collection<IAtsTeamWorkflow>> createAction(IAtsUser user,String title,String desc,ChangeType changeType,String priority,boolean validationRequired,Date needByDate,Collection<IAtsActionableItem> actionableItems,Date createdDate,IAtsUser createdBy,INewActionListener newActionListener,IAtsChangeSet changes) throws OseeCoreException {
  Conditions.checkNotNullOrEmptyOrContainNull(actionableItems,"String_Node_Str");
  Object actionArt=changes.createArtifact(AtsArtifactTypes.Action,title);
  IAtsAction action=workItemFactory.getAction(actionArt);
  changes.add(action);
  setArtifactIdentifyData(action,title,desc,changeType,priority,validationRequired,needByDate,changes);
  IAtsTeamDefinition topTeamDefinition=TeamDefinitions.getTopTeamDefinition(config);
  utilService.setAtsId(sequenceProvider,action,topTeamDefinition,changes);
  Collection<IAtsTeamDefinition> teamDefs=TeamDefinitions.getImpactedTeamDefs(actionableItems);
  if (teamDefs.isEmpty()) {
    StringBuffer sb=new StringBuffer("String_Node_Str");
    for (    IAtsActionableItem aia : actionableItems) {
      sb.append("String_Node_Str" + aia + "String_Node_Str"+ aia.getGuid()+ "String_Node_Str");
    }
    throw new OseeStateException(sb.toString());
  }
  List<IAtsTeamWorkflow> teamWfs=new ArrayList<IAtsTeamWorkflow>();
  for (  IAtsTeamDefinition teamDef : teamDefs) {
    List<IAtsUser> leads=new LinkedList<IAtsUser>(teamDef.getLeads(actionableItems));
    IAtsTeamWorkflow teamWf=createTeamWorkflow(action,teamDef,actionableItems,leads,changes,createdDate,createdBy,newActionListener);
    teamWfs.add(teamWf);
    changes.add(teamWf);
  }
  if (newActionListener != null) {
    newActionListener.actionCreated(action);
  }
  changes.add(action);
  return new Pair<IAtsAction,Collection<IAtsTeamWorkflow>>(action,teamWfs);
}

Fixed version (ground truth):
@Override public Pair<IAtsAction,Collection<IAtsTeamWorkflow>> createAction(IAtsUser user,String title,String desc,ChangeType changeType,String priority,boolean validationRequired,Date needByDate,Collection<IAtsActionableItem> actionableItems,Date createdDate,IAtsUser createdBy,INewActionListener newActionListener,IAtsChangeSet changes) throws OseeCoreException {
  Conditions.checkNotNullOrEmptyOrContainNull(actionableItems,"String_Node_Str");
  Object actionArt=changes.createArtifact(AtsArtifactTypes.Action,title);
  IAtsAction action=workItemFactory.getAction(actionArt);
  IAtsTeamDefinition topTeamDefinition=TeamDefinitions.getTopTeamDefinition(config);
  utilService.setAtsId(sequenceProvider,action,topTeamDefinition,changes);
  changes.add(action);
  setArtifactIdentifyData(action,title,desc,changeType,priority,validationRequired,needByDate,changes);
  Collection<IAtsTeamDefinition> teamDefs=TeamDefinitions.getImpactedTeamDefs(actionableItems);
  if (teamDefs.isEmpty()) {
    StringBuffer sb=new StringBuffer("String_Node_Str");
    for (    IAtsActionableItem aia : actionableItems) {
      sb.append("String_Node_Str" + aia + "String_Node_Str"+ aia.getGuid()+ "String_Node_Str");
    }
    throw new OseeStateException(sb.toString());
  }
  List<IAtsTeamWorkflow> teamWfs=new ArrayList<IAtsTeamWorkflow>();
  for (  IAtsTeamDefinition teamDef : teamDefs) {
    List<IAtsUser> leads=new LinkedList<IAtsUser>(teamDef.getLeads(actionableItems));
    IAtsTeamWorkflow teamWf=createTeamWorkflow(action,teamDef,actionableItems,leads,changes,createdDate,createdBy,newActionListener);
    teamWfs.add(teamWf);
    changes.add(teamWf);
  }
  if (newActionListener != null) {
    newActionListener.actionCreated(action);
  }
  changes.add(action);
  return new Pair<IAtsAction,Collection<IAtsTeamWorkflow>>(action,teamWfs);
}