Program: 35610
Project: 35610
Buggy source:
@Override public CommandResult execute(GetProjectModels cmd,User user) throws CommandException {
  if (log.isDebugEnabled()) {
    log.debug("String_Node_Str" + cmd.getModelType() + "String_Node_Str");
  }
  final ArrayList<ProjectModelDTOLight> projectModelDTOList=new ArrayList<ProjectModelDTOLight>();
  final Query query=em.createQuery("String_Node_Str");
  @SuppressWarnings("String_Node_Str") final List<ProjectModel> models=(List<ProjectModel>)query.getResultList();
  if (models != null) {
    for (    final ProjectModel model : models) {
      final ProjectModelType type=model.getVisibility(user.getOrganization());
      if (type != null && cmd.getProjectModelStatus() != null) {
        if (model.getStatus() != null && cmd.getProjectModelStatus().equals(model.getStatus())) {
          projectModelDTOList.add(mapper.map(model,ProjectModelDTOLight.class));
        }
      }
 else       if (cmd.getProjectModelStatus() == null && cmd.getAllProjectModelStatus()) {
        if (type != null) {
          projectModelDTOList.add(mapper.map(model,ProjectModelDTOLight.class));
        }
      }
 else {
        if (type != null) {
          if ((cmd.getModelType() == null || type == cmd.getModelType()) && !ProjectModelStatus.DRAFT.equals(model.getStatus())) {
            projectModelDTOList.add(mapper.map(model,ProjectModelDTOLight.class));
          }
        }
      }
    }
  }
  if (log.isDebugEnabled()) {
    log.debug("String_Node_Str" + projectModelDTOList.size() + "String_Node_Str");
  }
  if (models != null && cmd.getFullVersion() == true) {
    final ArrayList<ProjectModelDTO> projectFullModelDTOList=new ArrayList<ProjectModelDTO>();
    for (    final ProjectModel model : models) {
      projectFullModelDTOList.add(mapper.map(model,ProjectModelDTO.class));
    }
    return new ProjectModelListResult(projectModelDTOList,projectFullModelDTOList);
  }
  return new ProjectModelListResult(projectModelDTOList);
}

Fixed version (ground truth):
@Override public CommandResult execute(GetProjectModels cmd,User user) throws CommandException {
  if (log.isDebugEnabled()) {
    log.debug("String_Node_Str" + cmd.getModelType() + "String_Node_Str");
  }
  final ArrayList<ProjectModelDTOLight> projectModelDTOList=new ArrayList<ProjectModelDTOLight>();
  final Query query=em.createQuery("String_Node_Str");
  @SuppressWarnings("String_Node_Str") final List<ProjectModel> models=(List<ProjectModel>)query.getResultList();
  if (models != null) {
    for (    final ProjectModel model : models) {
      final ProjectModelType type=model.getVisibility(user.getOrganization());
      if (type != null && cmd.getProjectModelStatus() != null) {
        if (model.getStatus() != null && cmd.getProjectModelStatus().equals(model.getStatus())) {
          projectModelDTOList.add(mapper.map(model,ProjectModelDTOLight.class));
        }
      }
 else       if (cmd.getProjectModelStatus() == null && cmd.getAllProjectModelStatus()) {
        if (type != null) {
          projectModelDTOList.add(mapper.map(model,ProjectModelDTOLight.class));
        }
      }
 else {
        if (type != null) {
          if ((cmd.getModelType() == null || type == cmd.getModelType()) && !ProjectModelStatus.DRAFT.equals(model.getStatus()) && !ProjectModelStatus.UNAVAILABLE.equals(model.getStatus())) {
            projectModelDTOList.add(mapper.map(model,ProjectModelDTOLight.class));
          }
        }
      }
    }
  }
  if (log.isDebugEnabled()) {
    log.debug("String_Node_Str" + projectModelDTOList.size() + "String_Node_Str");
  }
  if (models != null && cmd.getFullVersion() == true) {
    final ArrayList<ProjectModelDTO> projectFullModelDTOList=new ArrayList<ProjectModelDTO>();
    for (    final ProjectModel model : models) {
      projectFullModelDTOList.add(mapper.map(model,ProjectModelDTO.class));
    }
    return new ProjectModelListResult(projectModelDTOList,projectFullModelDTOList);
  }
  return new ProjectModelListResult(projectModelDTOList);
}