Program: 97209
Project: 97209
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");
  ArtifactReadable userArt=AtsUtilServer.getArtifact(orcsApi,user);
  Conditions.checkNotNull(userArt,"String_Node_Str");
  ArtifactReadable actionArt=(ArtifactReadable)changes.createArtifact(AtsArtifactTypes.Action,title);
  IAtsAction action=workItemFactory.getAction(actionArt);
  changes.add(action);
  setArtifactIdentifyData(action,title,desc,changeType,priority,validationRequired,needByDate,changes);
  utilService.setAtsId(sequenceProvider,action,TeamDefinitions.getTopTeamDefinition(config),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");
  ArtifactReadable userArt=AtsUtilServer.getArtifact(orcsApi,user);
  Conditions.checkNotNull(userArt,"String_Node_Str");
  ArtifactReadable actionArt=(ArtifactReadable)changes.createArtifact(AtsArtifactTypes.Action,title);
  IAtsAction action=workItemFactory.getAction(actionArt);
  utilService.setAtsId(sequenceProvider,action,TeamDefinitions.getTopTeamDefinition(config),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);
}