Program: 127895
Project: 127895
Buggy source:
/** 
 * Ensures that fields are set. Update checkEnable / use to checkConnection().
 */
@Override public boolean checkFieldsValue(){
  boolean checkGeneralDB=isGeneralJDBC();
  if (!checkGeneralDB || dbTypeCombo.getText().equals(EDatabaseConnTemplate.ACCESS.getDBDisplayName())) {
    getConnection().setURL(getStringConnection());
  }
  boolean isTeradata=EDatabaseTypeName.TERADATA.getDisplayName().equals(dbTypeCombo.getText());
  sqlModeLabel.setVisible(isTeradata);
  button1.setVisible(isTeradata);
  button2.setVisible(isTeradata);
  if (CoreRuntimePlugin.getInstance().isDataProfilePerspectiveSelected()) {
    if (!isSupportByTDQ()) {
      updateStatus(IStatus.WARNING,"String_Node_Str");
      return false;
    }
  }
  if (isContextMode()) {
    return true;
  }
  databaseSettingIsValide=false;
  urlConnectionStringText.setText(getStringConnection());
  checkURLIsChanged();
  EDatabaseConnTemplate template=EDatabaseConnTemplate.indexOfTemplate(getConnection().getDatabaseType());
  if (template != null) {
    EDatabaseVersion4Drivers version=EDatabaseVersion4Drivers.indexOfByVersion(getConnection().getDbVersionString());
    urlConnectionStringText.setToolTipText(template.getUrlTemplate(version));
  }
  updateCheckButton();
  if (!isModify) {
    setPropertiesFormEditable(false);
  }
  if (dbTypeCombo.getSelectionIndex() < 0) {
    updateStatus(IStatus.ERROR,Messages.getString("String_Node_Str",dbTypeCombo.getLabel()));
    return false;
  }
  if (!isModify) {
    setPropertiesFormEditable(true);
  }
  if (!checkGeneralDB) {
    if (!checkTypeDBFieldValues()) {
      return false;
    }
  }
 else {
    if (!checkGeneralDBFieldValues()) {
      return false;
    }
  }
  if (isDBTypeSelected(EDatabaseConnTemplate.HBASE) && !checkHBaseSettings()) {
    return false;
  }
  if (!databaseSettingIsValide) {
    updateStatus(IStatus.INFO,Messages.getString("String_Node_Str"));
    return false;
  }
  if (sqlSyntaxCombo.getSelectionIndex() == -1) {
    updateStatus(IStatus.WARNING,Messages.getString("String_Node_Str",sqlSyntaxCombo.getLabel()));
    return false;
  }
  if (nullCharText.getCharCount() == 0) {
    updateStatus(IStatus.WARNING,Messages.getString("String_Node_Str",nullCharText.getLabelText()));
    return false;
  }
  if (stringQuoteText.getCharCount() == 0) {
    updateStatus(IStatus.WARNING,Messages.getString("String_Node_Str",stringQuoteText.getLabelText()));
    return false;
  }
  updateStatus(IStatus.OK,null);
  return true;
}

Fixed version (ground truth):
/** 
 * Ensures that fields are set. Update checkEnable / use to checkConnection().
 */
@Override public boolean checkFieldsValue(){
  boolean checkGeneralDB=isGeneralJDBC();
  if (!checkGeneralDB || dbTypeCombo.getText().equals(EDatabaseConnTemplate.ACCESS.getDBDisplayName())) {
    getConnection().setURL(getStringConnection());
  }
  boolean isTeradata=EDatabaseTypeName.TERADATA.getDisplayName().equals(dbTypeCombo.getText());
  sqlModeLabel.setVisible(isTeradata);
  button1.setVisible(isTeradata);
  button2.setVisible(isTeradata);
  if (CoreRuntimePlugin.getInstance().isDataProfilePerspectiveSelected()) {
    if (!isSupportByTDQ()) {
      updateStatus(IStatus.WARNING,"String_Node_Str");
      return false;
    }
  }
  if (isContextMode()) {
    return true;
  }
  databaseSettingIsValide=false;
  urlConnectionStringText.setText(getStringConnection());
  checkURLIsChanged();
  EDatabaseConnTemplate template=EDatabaseConnTemplate.indexOfTemplate(getConnection().getDatabaseType());
  if (template != null) {
    EDatabaseVersion4Drivers version=EDatabaseVersion4Drivers.indexOfByVersion(getConnection().getDbVersionString());
    urlConnectionStringText.setToolTipText(template.getUrlTemplate(version));
  }
  updateCheckButton();
  if (dbTypeCombo.getSelectionIndex() < 0) {
    updateStatus(IStatus.ERROR,Messages.getString("String_Node_Str",dbTypeCombo.getLabel()));
    return false;
  }
  if (!checkGeneralDB) {
    if (!checkTypeDBFieldValues()) {
      return false;
    }
  }
 else {
    if (!checkGeneralDBFieldValues()) {
      return false;
    }
  }
  if (isDBTypeSelected(EDatabaseConnTemplate.HBASE) && !checkHBaseSettings()) {
    return false;
  }
  if (!databaseSettingIsValide) {
    updateStatus(IStatus.INFO,Messages.getString("String_Node_Str"));
    return false;
  }
  if (sqlSyntaxCombo.getSelectionIndex() == -1) {
    updateStatus(IStatus.WARNING,Messages.getString("String_Node_Str",sqlSyntaxCombo.getLabel()));
    return false;
  }
  if (nullCharText.getCharCount() == 0) {
    updateStatus(IStatus.WARNING,Messages.getString("String_Node_Str",nullCharText.getLabelText()));
    return false;
  }
  if (stringQuoteText.getCharCount() == 0) {
    updateStatus(IStatus.WARNING,Messages.getString("String_Node_Str",stringQuoteText.getLabelText()));
    return false;
  }
  updateStatus(IStatus.OK,null);
  return true;
}