Program: 128431
Project: 128431
Buggy source:
/** 
 * DOC YeXiaowei Comment method "initializeGeneralJDBC".
 */
private void initializeGeneralJDBC(){
  generalJdbcUrlText.setText(getConnection().getURL());
  generalJdbcClassNameText.setText(getConnection().getDriverClass());
  generalJdbcUserText.setText(getConnection().getUsername());
  generalJdbcPasswordText.setText(getConnection().getPassword());
  generalJdbcDriverjarText.setText(getConnection().getDriverJarPath());
  generalMappingFileText.setText(getConnection().getDbmsId());
  String jdbcUrlString="String_Node_Str";
  if (isContextMode()) {
    if (selectedContextType == null) {
      selectedContextType=ConnectionContextHelper.getContextTypeForContextMode(getConnection(),null,true);
    }
    if (selectedContextType != null) {
      jdbcUrlString=ConnectionContextHelper.getOriginalValue(selectedContextType,getConnection().getURL());
    }
  }
 else {
    jdbcUrlString=generalJdbcUrlText.getText();
  }
  if (jdbcUrlString.contains("String_Node_Str")) {
    String schema=getConnection().getUiSchema();
    if (schema == null || "String_Node_Str".equals(schema)) {
      for (      ContextParameterType param : (List<ContextParameterType>)selectedContextType.getContextParameter()) {
        if (param.getName() != null && param.getName().endsWith(ConnectionContextHelper.LINE + EDBParamName.Schema)) {
          if (getConnection().isContextMode()) {
            schema="String_Node_Str" + param.getName();
          }
 else {
            schema=param.getValue();
          }
          break;
        }
      }
    }
    jDBCschemaText.setText(schema);
  }
 else {
    jDBCschemaText.setHideWidgets(true);
  }
}

Fixed version (ground truth):
/** 
 * DOC YeXiaowei Comment method "initializeGeneralJDBC".
 */
private void initializeGeneralJDBC(){
  generalJdbcUrlText.setText(getConnection().getURL());
  generalJdbcClassNameText.setText(getConnection().getDriverClass());
  generalJdbcUserText.setText(getConnection().getUsername());
  generalJdbcPasswordText.setText(getConnection().getPassword());
  generalJdbcDriverjarText.setText(getConnection().getDriverJarPath());
  generalMappingFileText.setText(getConnection().getDbmsId());
  String jdbcUrlString="String_Node_Str";
  if (isContextMode()) {
    if (selectedContextType == null) {
      selectedContextType=ConnectionContextHelper.getContextTypeForContextMode(getConnection(),null,true);
    }
    if (selectedContextType != null) {
      jdbcUrlString=ConnectionContextHelper.getOriginalValue(selectedContextType,getConnection().getURL());
    }
  }
 else {
    jdbcUrlString=generalJdbcUrlText.getText();
  }
  if (jdbcUrlString.contains("String_Node_Str")) {
    String schema=getConnection().getUiSchema();
    if (selectedContextType != null && (schema == null || "String_Node_Str".equals(schema))) {
      for (      ContextParameterType param : (List<ContextParameterType>)selectedContextType.getContextParameter()) {
        if (param.getName() != null && param.getName().endsWith(ConnectionContextHelper.LINE + EDBParamName.Schema)) {
          if (getConnection().isContextMode()) {
            schema="String_Node_Str" + param.getName();
          }
 else {
            schema=param.getValue();
          }
          break;
        }
      }
    }
    jDBCschemaText.setText(schema);
  }
 else {
    jDBCschemaText.setHideWidgets(true);
  }
}