Program: 118070
Project: 118070
Buggy source:
protected void evaluateTextField(){
  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() || btnConfirm == null || btnConfirm.isDisposed()) {
    return;
  }
  nameTextDecorator.hide();
  if (!btnConfirm.isDisposed() && !nameText.getText().equals(StringUtils.trimToEmpty(repositoryObject.getLabel()))) {
    boolean isValid=true;
    String errorMessage=null;
    if (nameText.getText().length() == 0) {
      errorMessage=Messages.getString("String_Node_Str");
      isValid=false;
    }
 else     if (nameText.getText().startsWith("String_Node_Str") || !Pattern.matches(RepositoryConstants.getPattern(repositoryObject.getRepositoryObjectType()),nameText.getText()) || nameText.getText().trim().contains("String_Node_Str")) {
      errorMessage=Messages.getString("String_Node_Str");
      isValid=false;
    }
 else     if (KeywordsValidator.isKeyword(nameText.getText()) || "String_Node_Str".equalsIgnoreCase(nameText.getText())) {
      errorMessage=Messages.getString("String_Node_Str");
      isValid=false;
    }
 else     if (nameText.getText().equalsIgnoreCase(ProjectManager.getInstance().getCurrentProject().getLabel())) {
      errorMessage=Messages.getString("String_Node_Str");
      isValid=false;
    }
 else {
      try {
        List<IRepositoryViewObject> listExistingObjects=proxyRepositoryFactory.getAll(ERepositoryObjectType.PROCESS,true,false);
        if (PluginChecker.isStormPluginLoader()) {
          listExistingObjects.addAll(proxyRepositoryFactory.getAll(ERepositoryObjectType.PROCESS_STORM,true,false));
        }
        if (PluginChecker.isMapReducePluginLoader()) {
          listExistingObjects.addAll(proxyRepositoryFactory.getAll(ERepositoryObjectType.PROCESS_MR,true,false));
        }
        if (repositoryObject.getProperty() != null && !proxyRepositoryFactory.isNameAvailable(repositoryObject.getProperty().getItem(),nameText.getText(),listExistingObjects)) {
          errorMessage=Messages.getString("String_Node_Str");
          isValid=false;
        }
      }
 catch (      PersistenceException e1) {
        e1.printStackTrace();
      }
    }
    if (isValid) {
      btnConfirm.setEnabled(true);
      nameTextDecorator.hide();
    }
 else {
      btnConfirm.setEnabled(false);
      nameTextDecorator.setDescriptionText(errorMessage);
      nameTextDecorator.show();
    }
  }
 else   if (!btnConfirm.isDisposed() && !versionText.getText().equals(StringUtils.trimToEmpty(repositoryObject.getVersion()))) {
    btnConfirm.setEnabled(true);
  }
 else   if (!btnConfirm.isDisposed() && !jobTypeCCombo.getText().equals(StringUtils.trimToEmpty(jobTypeValue))) {
    btnConfirm.setEnabled(true);
  }
 else   if (!btnConfirm.isDisposed() && !jobFrameworkCCombo.getText().equals(StringUtils.trimToEmpty(frameworkValue))) {
    btnConfirm.setEnabled(true);
  }
 else   if (!btnConfirm.isDisposed() && !purposeText.getText().equals(StringUtils.trimToEmpty(repositoryObject.getPurpose()))) {
    btnConfirm.setEnabled(true);
  }
 else   if (!btnConfirm.isDisposed() && !statusText.getText().equals(StringUtils.trimToEmpty(repositoryObject.getStatusCode()))) {
    btnConfirm.setEnabled(true);
  }
 else   if (!btnConfirm.isDisposed() && !descriptionText.getText().equals(StringUtils.trimToEmpty(repositoryObject.getDescription()))) {
    btnConfirm.setEnabled(true);
  }
 else   if (nameText.getText().equals(repositoryObject.getLabel())) {
    btnConfirm.setEnabled(false);
  }
}

Fixed version (ground truth):
protected void evaluateTextField(){
  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() || btnConfirm == null || btnConfirm.isDisposed()) {
    return;
  }
  nameTextDecorator.hide();
  if (!btnConfirm.isDisposed() && !nameText.getText().equals(StringUtils.trimToEmpty(repositoryObject.getLabel()))) {
    boolean isValid=true;
    String errorMessage=null;
    if (nameText.getText().length() == 0) {
      errorMessage=Messages.getString("String_Node_Str");
      isValid=false;
    }
 else     if (nameText.getText().startsWith("String_Node_Str") || !Pattern.matches(RepositoryConstants.getPattern(repositoryObject.getRepositoryObjectType()),nameText.getText()) || nameText.getText().trim().contains("String_Node_Str")) {
      errorMessage=Messages.getString("String_Node_Str");
      isValid=false;
    }
 else     if (JavaConventions.validateClassFileName(nameText.getText() + "String_Node_Str",JavaCore.getOption(JavaCore.COMPILER_SOURCE),JavaCore.getOption(JavaCore.COMPILER_COMPLIANCE)).getSeverity() == IStatus.ERROR || KeywordsValidator.isKeyword(nameText.getText())) {
      errorMessage=Messages.getString("String_Node_Str");
      isValid=false;
    }
 else     if (nameText.getText().equalsIgnoreCase(ProjectManager.getInstance().getCurrentProject().getLabel())) {
      errorMessage=Messages.getString("String_Node_Str");
      isValid=false;
    }
 else {
      try {
        List<IRepositoryViewObject> listExistingObjects=proxyRepositoryFactory.getAll(ERepositoryObjectType.PROCESS,true,false);
        if (PluginChecker.isStormPluginLoader()) {
          listExistingObjects.addAll(proxyRepositoryFactory.getAll(ERepositoryObjectType.PROCESS_STORM,true,false));
        }
        if (PluginChecker.isMapReducePluginLoader()) {
          listExistingObjects.addAll(proxyRepositoryFactory.getAll(ERepositoryObjectType.PROCESS_MR,true,false));
        }
        if (repositoryObject.getProperty() != null && !proxyRepositoryFactory.isNameAvailable(repositoryObject.getProperty().getItem(),nameText.getText(),listExistingObjects)) {
          errorMessage=Messages.getString("String_Node_Str");
          isValid=false;
        }
      }
 catch (      PersistenceException e1) {
        e1.printStackTrace();
      }
    }
    if (isValid) {
      btnConfirm.setEnabled(true);
      nameTextDecorator.hide();
    }
 else {
      btnConfirm.setEnabled(false);
      nameTextDecorator.setDescriptionText(errorMessage);
      nameTextDecorator.show();
    }
  }
 else   if (!btnConfirm.isDisposed() && !versionText.getText().equals(StringUtils.trimToEmpty(repositoryObject.getVersion()))) {
    btnConfirm.setEnabled(true);
  }
 else   if (!btnConfirm.isDisposed() && !jobTypeCCombo.getText().equals(StringUtils.trimToEmpty(jobTypeValue))) {
    btnConfirm.setEnabled(true);
  }
 else   if (!btnConfirm.isDisposed() && !jobFrameworkCCombo.getText().equals(StringUtils.trimToEmpty(frameworkValue))) {
    btnConfirm.setEnabled(true);
  }
 else   if (!btnConfirm.isDisposed() && !purposeText.getText().equals(StringUtils.trimToEmpty(repositoryObject.getPurpose()))) {
    btnConfirm.setEnabled(true);
  }
 else   if (!btnConfirm.isDisposed() && !statusText.getText().equals(StringUtils.trimToEmpty(repositoryObject.getStatusCode()))) {
    btnConfirm.setEnabled(true);
  }
 else   if (!btnConfirm.isDisposed() && !descriptionText.getText().equals(StringUtils.trimToEmpty(repositoryObject.getDescription()))) {
    btnConfirm.setEnabled(true);
  }
 else   if (nameText.getText().equals(repositoryObject.getLabel())) {
    btnConfirm.setEnabled(false);
  }
}