Program: 125846
Project: 125846
Buggy source:
@Override protected void doRun(){
  IStructuredSelection selection=(IStructuredSelection)getSelection();
  RepositoryNode target=(RepositoryNode)selection.getFirstElement();
  CopyObjectAction copyObjectAction=CopyObjectAction.getInstance();
  TreeSelection selectionInClipboard=(TreeSelection)LocalSelectionTransfer.getTransfer().getSelection();
  if (selectionInClipboard != null) {
    for (    Object currentSource : selectionInClipboard.toArray()) {
      RepositoryNode sourceNode=(RepositoryNode)currentSource;
      if (ProcessConvertManager.getInstance().CheckConvertProcess(sourceNode,target)) {
        String jobNewName=null;
        String jobTypeValue=null;
        String frameworkNewValue=null;
        if (target.getContentType() == ERepositoryObjectType.PROCESS) {
          jobTypeValue=ConvertJobsUtil.JobType.STANDARD.getDisplayName();
        }
 else         if (target.getContentType() == ERepositoryObjectType.PROCESS_STORM) {
          jobTypeValue=ConvertJobsUtil.JobType.BIGDATASTREAMING.getDisplayName();
          frameworkNewValue=ConvertJobsUtil.JobStreamingFramework.SPARKSTREAMINGFRAMEWORK.getDisplayName();
        }
 else         if (target.getContentType() == ERepositoryObjectType.PROCESS_MR) {
          jobTypeValue=ConvertJobsUtil.JobType.BIGDATABATCH.getDisplayName();
          frameworkNewValue=ConvertJobsUtil.JobBatchFramework.MAPREDUCEFRAMEWORK.getDisplayName();
        }
        try {
          jobNewName=ConvertJobsUtil.getDuplicateName(sourceNode,sourceNode.getObject().getLabel());
        }
 catch (        BusinessException e) {
          jobNewName=sourceNode.getObject().getLabel();
        }
        ConvertJobsUtil.createOperation(jobNewName,jobTypeValue,frameworkNewValue,sourceNode.getObject());
      }
 else {
        try {
          if (copyObjectAction.validateAction((RepositoryNode)currentSource,target)) {
            copyObjectAction.execute((RepositoryNode)currentSource,target);
          }
 else {
            MessageDialog.openWarning(new Shell(),Messages.getString("String_Node_Str"),Messages.getString("String_Node_Str"));
          }
        }
 catch (        BusinessException e) {
          MessageBoxExceptionHandler.process(e);
        }
catch (        Exception e) {
          CommonExceptionHandler.process(e);
        }
      }
    }
    ERepositoryObjectType contentType=target.getContentType();
    if (contentType == null) {
      contentType=target.getObjectType();
    }
    if (contentType != null && contentType == ERepositoryObjectType.JOBLET) {
      if (PluginChecker.isJobLetPluginLoaded()) {
        IJobletProviderService jobletService=(IJobletProviderService)GlobalServiceRegister.getDefault().getService(IJobletProviderService.class);
        if (jobletService != null) {
          jobletService.loadComponentsFromProviders();
        }
      }
    }
  }
}

Fixed version (ground truth):
@Override protected void doRun(){
  IStructuredSelection selection=(IStructuredSelection)getSelection();
  RepositoryNode target=(RepositoryNode)selection.getFirstElement();
  CopyObjectAction copyObjectAction=CopyObjectAction.getInstance();
  TreeSelection selectionInClipboard=(TreeSelection)LocalSelectionTransfer.getTransfer().getSelection();
  if (selectionInClipboard != null) {
    for (    Object currentSource : selectionInClipboard.toArray()) {
      RepositoryNode sourceNode=(RepositoryNode)currentSource;
      if (ProcessConvertManager.getInstance().CheckConvertProcess(sourceNode,target)) {
        String jobNewName=null;
        String jobTypeValue=null;
        String frameworkNewValue=null;
        if (target.getContentType() == ERepositoryObjectType.PROCESS) {
          jobTypeValue=ConvertJobsUtil.JobType.STANDARD.getDisplayName();
        }
 else         if (target.getContentType() == ERepositoryObjectType.PROCESS_STORM) {
          jobTypeValue=ConvertJobsUtil.JobType.BIGDATASTREAMING.getDisplayName();
          frameworkNewValue=ConvertJobsUtil.JobStreamingFramework.SPARKSTREAMINGFRAMEWORK.getDisplayName();
        }
 else         if (target.getContentType() == ERepositoryObjectType.PROCESS_MR) {
          jobTypeValue=ConvertJobsUtil.JobType.BIGDATABATCH.getDisplayName();
          frameworkNewValue=ConvertJobsUtil.JobBatchFramework.MAPREDUCEFRAMEWORK.getDisplayName();
        }
        try {
          jobNewName=ConvertJobsUtil.getDuplicateName(sourceNode,sourceNode.getObject().getLabel());
        }
 catch (        BusinessException e) {
          jobNewName=sourceNode.getObject().getLabel();
        }
        Object sourceFramework=null;
        if (sourceNode.getObject() != null) {
          sourceFramework=sourceNode.getObject().getProperty().getAdditionalProperties().get(ConvertJobsUtil.FRAMEWORK);
        }
        ConvertJobsUtil.createOperation(jobNewName,jobTypeValue,frameworkNewValue,sourceNode.getObject());
        if (sourceNode.getObject() != null) {
          Object currentFramework=sourceNode.getObject().getProperty().getAdditionalProperties().get(ConvertJobsUtil.FRAMEWORK);
          if (sourceFramework != null && currentFramework != null && !sourceFramework.equals(currentFramework)) {
            sourceNode.getObject().getProperty().getAdditionalProperties().put(ConvertJobsUtil.FRAMEWORK,sourceFramework);
          }
        }
      }
 else {
        try {
          if (copyObjectAction.validateAction((RepositoryNode)currentSource,target)) {
            copyObjectAction.execute((RepositoryNode)currentSource,target);
          }
 else {
            MessageDialog.openWarning(new Shell(),Messages.getString("String_Node_Str"),Messages.getString("String_Node_Str"));
          }
        }
 catch (        BusinessException e) {
          MessageBoxExceptionHandler.process(e);
        }
catch (        Exception e) {
          CommonExceptionHandler.process(e);
        }
      }
    }
    ERepositoryObjectType contentType=target.getContentType();
    if (contentType == null) {
      contentType=target.getObjectType();
    }
    if (contentType != null && contentType == ERepositoryObjectType.JOBLET) {
      if (PluginChecker.isJobLetPluginLoaded()) {
        IJobletProviderService jobletService=(IJobletProviderService)GlobalServiceRegister.getDefault().getService(IJobletProviderService.class);
        if (jobletService != null) {
          jobletService.loadComponentsFromProviders();
        }
      }
    }
  }
}