Program: 126208
Project: 126208
Buggy source:
protected JobInfo newJobInfo(JobInfo jobInfo){
  JobInfo newJobInfo=new JobInfo(jobInfo.getJobId(),jobInfo.getContextName(),jobInfo.getJobVersion());
  newJobInfo.setJobName(jobInfo.getJobName());
  newJobInfo.setApplyContextToChildren(jobInfo.isApplyContextToChildren());
  newJobInfo.setContext(jobInfo.getContext());
  newJobInfo.setProjectFolderName(jobInfo.getProjectFolderName());
  newJobInfo.setProcessItem(jobInfo.getProcessItem());
  ProcessItem processItem=newJobInfo.getProcessItem();
  if (processItem == null) {
    try {
      final IRepositoryViewObject obj=CoreRuntimePlugin.getInstance().getProxyRepositoryFactory().getSpecificVersion(jobInfo.getJobId(),jobInfo.getJobVersion(),true);
      if (obj != null) {
        final Item item=obj.getProperty().getItem();
        if (item instanceof ProcessItem) {
          processItem=(ProcessItem)item;
          newJobInfo.setProcessItem(processItem);
        }
      }
    }
 catch (    PersistenceException e) {
    }
  }
  if (processItem != null) {
    IProcess process=jobInfo.getProcess();
    if (process == null && GlobalServiceRegister.getDefault().isServiceRegistered(IDesignerCoreService.class)) {
      IDesignerCoreService service=(IDesignerCoreService)GlobalServiceRegister.getDefault().getService(IDesignerCoreService.class);
      process=service.getProcessFromItem(processItem);
      newJobInfo.setProcess(process);
    }
    final String projectFolderName=JavaResourcesHelper.getProjectFolderName(processItem);
    newJobInfo.setProjectFolderName(projectFolderName);
  }
  newJobInfo.setTestContainer(newJobInfo.isTestContainer());
  JobInfo fatherJobInfo=jobInfo.getFatherJobInfo();
  if (fatherJobInfo != null) {
    newJobInfo.setFatherJobInfo(newJobInfo(fatherJobInfo));
  }
  return newJobInfo;
}

Fixed version (ground truth):
protected JobInfo newJobInfo(JobInfo jobInfo){
  JobInfo newJobInfo=new JobInfo(jobInfo.getJobId(),jobInfo.getContextName(),jobInfo.getJobVersion());
  newJobInfo.setJobName(jobInfo.getJobName());
  newJobInfo.setApplyContextToChildren(jobInfo.isApplyContextToChildren());
  newJobInfo.setContext(jobInfo.getContext());
  newJobInfo.setProjectFolderName(jobInfo.getProjectFolderName());
  newJobInfo.setProcessItem(jobInfo.getProcessItem());
  ProcessItem processItem=newJobInfo.getProcessItem();
  if (processItem == null) {
    try {
      final IRepositoryViewObject obj=CoreRuntimePlugin.getInstance().getProxyRepositoryFactory().getSpecificVersion(jobInfo.getJobId(),jobInfo.getJobVersion(),true);
      if (obj != null) {
        final Item item=obj.getProperty().getItem();
        if (item instanceof ProcessItem) {
          processItem=(ProcessItem)item;
          newJobInfo.setProcessItem(processItem);
        }
      }
    }
 catch (    PersistenceException e) {
    }
  }
  if (processItem != null) {
    IProcess process=jobInfo.getProcess();
    if (process == null && GlobalServiceRegister.getDefault().isServiceRegistered(IDesignerCoreService.class)) {
      IDesignerCoreService service=(IDesignerCoreService)GlobalServiceRegister.getDefault().getService(IDesignerCoreService.class);
      process=service.getProcessFromItem(processItem);
      newJobInfo.setProcess(process);
    }
    final String projectFolderName=JavaResourcesHelper.getProjectFolderName(processItem);
    newJobInfo.setProjectFolderName(projectFolderName);
  }
  newJobInfo.setTestContainer(jobInfo.isTestContainer());
  JobInfo fatherJobInfo=jobInfo.getFatherJobInfo();
  if (fatherJobInfo != null) {
    newJobInfo.setFatherJobInfo(newJobInfo(fatherJobInfo));
  }
  return newJobInfo;
}