Program: 126959
Project: 126959
Buggy source:
static void setSalesforcePropertiesForContextMode(String prefixName,SalesforceSchemaConnection ssConn){
  if (ssConn == null || prefixName == null) {
    return;
  }
  prefixName=prefixName + ConnectionContextHelper.LINE;
  String paramName=null;
  if (ssConn.getLoginType().equals(BASIC)) {
    paramName=prefixName + EParamName.WebServiceUrl;
    ssConn.setWebServiceUrl(ContextParameterUtils.getNewScriptCode(paramName,LANGUAGE));
    paramName=prefixName + EParamName.UserName;
    ssConn.setUserName(ContextParameterUtils.getNewScriptCode(paramName,LANGUAGE));
    paramName=prefixName + EParamName.Password;
    ssConn.setPassword(ContextParameterUtils.getNewScriptCode(paramName,LANGUAGE));
    paramName=prefixName + EParamName.BatchSize;
    ssConn.setBatchSize(ContextParameterUtils.getNewScriptCode(paramName,LANGUAGE));
    paramName=prefixName + EParamName.TimeOut;
    ssConn.setTimeOut(ContextParameterUtils.getNewScriptCode(paramName,LANGUAGE));
    paramName=prefixName + EParamName.QueryCondition;
    ssConn.setQueryCondition(ContextParameterUtils.getNewScriptCode(paramName,LANGUAGE));
    paramName=prefixName + EParamName.SFProxyHost;
    ssConn.setProxyHost(ContextParameterUtils.getNewScriptCode(paramName,LANGUAGE));
    paramName=prefixName + EParamName.SFProxyPort;
    ssConn.setProxyPort(ContextParameterUtils.getNewScriptCode(paramName,LANGUAGE));
    paramName=prefixName + EParamName.SFProxyUsername;
    ssConn.setProxyUsername(ContextParameterUtils.getNewScriptCode(paramName,LANGUAGE));
    paramName=prefixName + EParamName.SFProxyPassword;
    ssConn.setProxyPassword(ContextParameterUtils.getNewScriptCode(paramName,LANGUAGE));
  }
 else {
    paramName=prefixName + EParamName.WebServiceUrlForOauth;
    ssConn.setWebServiceUrlTextForOAuth(ContextParameterUtils.getNewScriptCode(paramName,LANGUAGE));
    paramName=prefixName + EParamName.ConsumerKey;
    ssConn.setConsumeKey(ContextParameterUtils.getNewScriptCode(paramName,LANGUAGE));
    paramName=prefixName + EParamName.ConsumerSecret;
    ssConn.setConsumeSecret(ContextParameterUtils.getNewScriptCode(paramName,LANGUAGE));
    paramName=prefixName + EParamName.CallbackHost;
    ssConn.setCallbackHost(ContextParameterUtils.getNewScriptCode(paramName,LANGUAGE));
    paramName=prefixName + EParamName.CallbackPort;
    ssConn.setCallbackPort(ContextParameterUtils.getNewScriptCode(paramName,LANGUAGE));
    paramName=prefixName + EParamName.SalesforceVersion;
    ssConn.setSalesforceVersion(ContextParameterUtils.getNewScriptCode(paramName,LANGUAGE));
    paramName=prefixName + EParamName.token;
    ssConn.setToken(ContextParameterUtils.getNewScriptCode(paramName,LANGUAGE));
    paramName=prefixName + EParamName.BatchSize;
    ssConn.setBatchSize(ContextParameterUtils.getNewScriptCode(paramName,LANGUAGE));
    paramName=prefixName + EParamName.TimeOut;
    ssConn.setTimeOut(ContextParameterUtils.getNewScriptCode(paramName,LANGUAGE));
    paramName=prefixName + EParamName.QueryCondition;
    ssConn.setQueryCondition(ContextParameterUtils.getNewScriptCode(paramName,LANGUAGE));
  }
}

Fixed version (ground truth):
static void setSalesforcePropertiesForContextMode(String prefixName,SalesforceSchemaConnection ssConn){
  if (ssConn == null || prefixName == null) {
    return;
  }
  prefixName=prefixName + ConnectionContextHelper.LINE;
  String paramName=null;
  if (ssConn.getLoginType().equalsIgnoreCase(BASIC)) {
    paramName=prefixName + EParamName.WebServiceUrl;
    ssConn.setWebServiceUrl(ContextParameterUtils.getNewScriptCode(paramName,LANGUAGE));
    paramName=prefixName + EParamName.UserName;
    ssConn.setUserName(ContextParameterUtils.getNewScriptCode(paramName,LANGUAGE));
    paramName=prefixName + EParamName.Password;
    ssConn.setPassword(ContextParameterUtils.getNewScriptCode(paramName,LANGUAGE));
    paramName=prefixName + EParamName.BatchSize;
    ssConn.setBatchSize(ContextParameterUtils.getNewScriptCode(paramName,LANGUAGE));
    paramName=prefixName + EParamName.TimeOut;
    ssConn.setTimeOut(ContextParameterUtils.getNewScriptCode(paramName,LANGUAGE));
    paramName=prefixName + EParamName.QueryCondition;
    ssConn.setQueryCondition(ContextParameterUtils.getNewScriptCode(paramName,LANGUAGE));
    paramName=prefixName + EParamName.SFProxyHost;
    ssConn.setProxyHost(ContextParameterUtils.getNewScriptCode(paramName,LANGUAGE));
    paramName=prefixName + EParamName.SFProxyPort;
    ssConn.setProxyPort(ContextParameterUtils.getNewScriptCode(paramName,LANGUAGE));
    paramName=prefixName + EParamName.SFProxyUsername;
    ssConn.setProxyUsername(ContextParameterUtils.getNewScriptCode(paramName,LANGUAGE));
    paramName=prefixName + EParamName.SFProxyPassword;
    ssConn.setProxyPassword(ContextParameterUtils.getNewScriptCode(paramName,LANGUAGE));
  }
 else {
    paramName=prefixName + EParamName.WebServiceUrlForOauth;
    ssConn.setWebServiceUrlTextForOAuth(ContextParameterUtils.getNewScriptCode(paramName,LANGUAGE));
    paramName=prefixName + EParamName.ConsumerKey;
    ssConn.setConsumeKey(ContextParameterUtils.getNewScriptCode(paramName,LANGUAGE));
    paramName=prefixName + EParamName.ConsumerSecret;
    ssConn.setConsumeSecret(ContextParameterUtils.getNewScriptCode(paramName,LANGUAGE));
    paramName=prefixName + EParamName.CallbackHost;
    ssConn.setCallbackHost(ContextParameterUtils.getNewScriptCode(paramName,LANGUAGE));
    paramName=prefixName + EParamName.CallbackPort;
    ssConn.setCallbackPort(ContextParameterUtils.getNewScriptCode(paramName,LANGUAGE));
    paramName=prefixName + EParamName.SalesforceVersion;
    ssConn.setSalesforceVersion(ContextParameterUtils.getNewScriptCode(paramName,LANGUAGE));
    paramName=prefixName + EParamName.token;
    ssConn.setToken(ContextParameterUtils.getNewScriptCode(paramName,LANGUAGE));
    paramName=prefixName + EParamName.BatchSize;
    ssConn.setBatchSize(ContextParameterUtils.getNewScriptCode(paramName,LANGUAGE));
    paramName=prefixName + EParamName.TimeOut;
    ssConn.setTimeOut(ContextParameterUtils.getNewScriptCode(paramName,LANGUAGE));
    paramName=prefixName + EParamName.QueryCondition;
    ssConn.setQueryCondition(ContextParameterUtils.getNewScriptCode(paramName,LANGUAGE));
  }
}