Program: 119085
Project: 119085
Buggy source:
@Override public void widgetSelected(SelectionEvent e){
  final IProxyRepositoryFactory proxyRepositoryFactory=CoreRuntimePlugin.getInstance().getProxyRepositoryFactory();
  if (nameText == null || nameText.isDisposed() || versionText == null || versionText.isDisposed() || purposeText == null || purposeText.isDisposed() || jobTypeCCombo == null || jobTypeCCombo.isDisposed() || jobFrameworkCCombo == null || jobFrameworkCCombo.isDisposed() || statusText == null || statusText.isDisposed() || descriptionText == null || descriptionText.isDisposed()) {
    return;
  }
  DeleteActionCache.getInstance().closeOpenedEditor(repositoryObject);
  if (!nameText.getText().equals(StringUtils.trimToEmpty(repositoryObject.getLabel()))) {
  }
  if (!versionText.getText().equals(StringUtils.trimToEmpty(repositoryObject.getVersion()))) {
    property.setVersion(versionText.getText());
  }
  if (!jobTypeCCombo.getText().equals(StringUtils.trimToEmpty(jobTypeValue))) {
  }
  if (!jobFrameworkCCombo.getText().equals(StringUtils.trimToEmpty(frameworkValue))) {
    if (property.getAdditionalProperties().containsKey(ConvertJobsUtil.FRAMEWORK)) {
      property.getAdditionalProperties().removeKey(ConvertJobsUtil.FRAMEWORK);
    }
    property.getAdditionalProperties().put(ConvertJobsUtil.FRAMEWORK,jobFrameworkCCombo.getText());
  }
  if (!purposeText.getText().equals(StringUtils.trimToEmpty(repositoryObject.getPurpose()))) {
    property.setPurpose(purposeText.getText());
  }
  if (!statusText.getText().equals(StringUtils.trimToEmpty(repositoryObject.getStatusCode()))) {
    property.setStatusCode(statusText.getText());
  }
  if (!descriptionText.getText().equals(StringUtils.trimToEmpty(repositoryObject.getDescription()))) {
    property.setDescription(descriptionText.getText());
  }
  boolean convert=true;
  if (jobTypeCCombo.getText().equals(StringUtils.trimToEmpty(jobTypeValue))) {
    if (!jobFrameworkCCombo.getText().equals(StringUtils.trimToEmpty(frameworkValue))) {
      convert=false;
    }
  }
  if (convert) {
    Item newItem=ConvertJobsUtil.createOperation(nameText.getText(),jobTypeCCombo.getText(),jobFrameworkCCombo.getText(),repositoryObject);
    IWorkspaceRunnable runnable=new IWorkspaceRunnable(){
      @Override public void run(      final IProgressMonitor monitor) throws CoreException {
        try {
          proxyRepositoryFactory.unlock(repositoryObject);
          proxyRepositoryFactory.deleteObjectPhysical(repositoryObject);
          proxyRepositoryFactory.saveProject(ProjectManager.getInstance().getCurrentProject());
        }
 catch (        PersistenceException e1) {
          e1.printStackTrace();
        }
catch (        LoginException e) {
          e.printStackTrace();
        }
      }
    }
;
    IWorkspace workspace=ResourcesPlugin.getWorkspace();
    try {
      ISchedulingRule schedulingRule=workspace.getRoot();
      workspace.run(runnable,schedulingRule,IWorkspace.AVOID_UPDATE,null);
    }
 catch (    CoreException e1) {
      MessageBoxExceptionHandler.process(e1.getCause());
    }
    if (newItem != null) {
      openEditorOperation(newItem);
    }
  }
 else {
    openEditorOperation(property.getItem());
    try {
      proxyRepositoryFactory.save(ProjectManager.getInstance().getCurrentProject(),property.getItem(),false);
    }
 catch (    PersistenceException e1) {
      e1.printStackTrace();
    }
  }
}

Fixed version (ground truth):
@Override public void widgetSelected(SelectionEvent e){
  final IProxyRepositoryFactory proxyRepositoryFactory=CoreRuntimePlugin.getInstance().getProxyRepositoryFactory();
  if (nameText == null || nameText.isDisposed() || versionText == null || versionText.isDisposed() || purposeText == null || purposeText.isDisposed() || jobTypeCCombo == null || jobTypeCCombo.isDisposed() || jobFrameworkCCombo == null || jobFrameworkCCombo.isDisposed() || statusText == null || statusText.isDisposed() || descriptionText == null || descriptionText.isDisposed()) {
    return;
  }
  Property property=repositoryObject.getProperty();
  DeleteActionCache.getInstance().closeOpenedEditor(repositoryObject);
  if (!nameText.getText().equals(StringUtils.trimToEmpty(repositoryObject.getLabel()))) {
  }
  if (!versionText.getText().equals(StringUtils.trimToEmpty(repositoryObject.getVersion()))) {
    property.setVersion(versionText.getText());
  }
  if (!jobTypeCCombo.getText().equals(StringUtils.trimToEmpty(jobTypeValue))) {
  }
  if (!jobFrameworkCCombo.getText().equals(StringUtils.trimToEmpty(frameworkValue))) {
    if (property.getAdditionalProperties().containsKey(ConvertJobsUtil.FRAMEWORK)) {
      property.getAdditionalProperties().removeKey(ConvertJobsUtil.FRAMEWORK);
    }
    property.getAdditionalProperties().put(ConvertJobsUtil.FRAMEWORK,jobFrameworkCCombo.getText());
  }
  if (!purposeText.getText().equals(StringUtils.trimToEmpty(repositoryObject.getPurpose()))) {
    property.setPurpose(purposeText.getText());
  }
  if (!statusText.getText().equals(StringUtils.trimToEmpty(repositoryObject.getStatusCode()))) {
    property.setStatusCode(statusText.getText());
  }
  if (!descriptionText.getText().equals(StringUtils.trimToEmpty(repositoryObject.getDescription()))) {
    property.setDescription(descriptionText.getText());
  }
  boolean convert=true;
  if (jobTypeCCombo.getText().equals(StringUtils.trimToEmpty(jobTypeValue))) {
    if (!jobFrameworkCCombo.getText().equals(StringUtils.trimToEmpty(frameworkValue))) {
      convert=false;
    }
  }
  if (convert) {
    Item newItem=ConvertJobsUtil.createOperation(nameText.getText(),jobTypeCCombo.getText(),jobFrameworkCCombo.getText(),repositoryObject);
    IWorkspaceRunnable runnable=new IWorkspaceRunnable(){
      @Override public void run(      final IProgressMonitor monitor) throws CoreException {
        try {
          proxyRepositoryFactory.unlock(repositoryObject);
          proxyRepositoryFactory.deleteObjectPhysical(repositoryObject);
          proxyRepositoryFactory.saveProject(ProjectManager.getInstance().getCurrentProject());
        }
 catch (        PersistenceException e1) {
          e1.printStackTrace();
        }
catch (        LoginException e) {
          e.printStackTrace();
        }
      }
    }
;
    IWorkspace workspace=ResourcesPlugin.getWorkspace();
    try {
      ISchedulingRule schedulingRule=workspace.getRoot();
      workspace.run(runnable,schedulingRule,IWorkspace.AVOID_UPDATE,null);
    }
 catch (    CoreException e1) {
      MessageBoxExceptionHandler.process(e1.getCause());
    }
    if (newItem != null) {
      openEditorOperation(newItem);
    }
  }
 else {
    openEditorOperation(property.getItem());
    try {
      proxyRepositoryFactory.save(ProjectManager.getInstance().getCurrentProject(),property.getItem(),false);
    }
 catch (    PersistenceException e1) {
      e1.printStackTrace();
    }
  }
}