Program: 34689
Project: 34689
Buggy source:
private void initializeServers(Map<String,Object> configProps) throws WIMException {
  if (configProps.containsKey(CONFIG_PROP_SEARCH_TIME_OUT)) {
    long val=Long.parseLong(String.valueOf(configProps.get(CONFIG_PROP_SEARCH_TIME_OUT)));
    iTimeLimit=(int)val;
  }
  if (configProps.containsKey(CONFIG_PROP_SEARCH_COUNT_LIMIT)) {
    iCountLimit=(int)configProps.get(CONFIG_PROP_SEARCH_COUNT_LIMIT);
  }
  if (configProps.containsKey(CONFIG_PROP_SEARCH_PAGE_SIZE)) {
    iPageSize=(int)configProps.get(CONFIG_PROP_SEARCH_PAGE_SIZE);
  }
 else {
    if (iLdapConfigMgr.getLdapType().startsWith("String_Node_Str")) {
      iPageSize=1000;
    }
  }
  if (configProps.containsKey(CONFIG_PROP_ATTRIBUTE_RANGE_STEP)) {
    iAttrRangeStep=Integer.parseInt((String)configProps.get(CONFIG_PROP_ATTRIBUTE_RANGE_STEP));
  }
 else {
    if (iLdapConfigMgr.getLdapType().equals("String_Node_Str") || iLdapConfigMgr.getLdapType().equals("String_Node_Str")) {
      iAttrRangeStep=1000;
    }
 else     if (iLdapConfigMgr.getLdapType().startsWith("String_Node_Str")) {
      iAttrRangeStep=1500;
    }
 else     if (iLdapConfigMgr.getLdapType().startsWith("String_Node_Str")) {
      iAttrRangeStep=1000;
    }
  }
  iWriteToSecondary=Boolean.getBoolean((String)configProps.get(CONFIG_PROP_ALLOW_WRITE_TO_SECONDARY_SERVERS));
  iReturnToPrimary=(Boolean)configProps.get(CONFIG_PROP_RETURN_TO_PRIMARY_SERVER);
  iQueryInterval=(Integer)configProps.get(CONFIG_PROP_PRIMARY_SERVER_QUERY_TIME_INTERVAL) * 60;
  initializeSSL(configProps);
  List<Map<String,Object>> serversConfig=Nester.nest(FAILOVER_SERVERS,configProps);
  boolean sslEnabled=(Boolean)configProps.get(CONFIG_PROP_SSL_ENABLED);
  iEnvironment=initializeEnvironmentProperties(sslEnabled,serversConfig,configProps);
}

Fixed version (ground truth):
private void initializeServers(Map<String,Object> configProps) throws WIMException {
  if (configProps.containsKey(CONFIG_PROP_SEARCH_TIME_OUT)) {
    long val=Long.parseLong(String.valueOf(configProps.get(CONFIG_PROP_SEARCH_TIME_OUT)));
    iTimeLimit=(int)val;
  }
  if (configProps.containsKey(CONFIG_PROP_SEARCH_COUNT_LIMIT)) {
    iCountLimit=(int)configProps.get(CONFIG_PROP_SEARCH_COUNT_LIMIT);
  }
  if (configProps.containsKey(CONFIG_PROP_SEARCH_PAGE_SIZE)) {
    iPageSize=(int)configProps.get(CONFIG_PROP_SEARCH_PAGE_SIZE);
  }
 else {
    if (LdapConstants.AD_LDAP_SERVER.equalsIgnoreCase(iLdapConfigMgr.getLdapType())) {
      iPageSize=1000;
    }
  }
  if (configProps.containsKey(CONFIG_PROP_ATTRIBUTE_RANGE_STEP)) {
    iAttrRangeStep=Integer.parseInt((String)configProps.get(CONFIG_PROP_ATTRIBUTE_RANGE_STEP));
  }
 else   if (LdapConstants.AD_LDAP_SERVER.equalsIgnoreCase(iLdapConfigMgr.getLdapType())) {
    iAttrRangeStep=1000;
  }
  iWriteToSecondary=Boolean.getBoolean((String)configProps.get(CONFIG_PROP_ALLOW_WRITE_TO_SECONDARY_SERVERS));
  iReturnToPrimary=(Boolean)configProps.get(CONFIG_PROP_RETURN_TO_PRIMARY_SERVER);
  iQueryInterval=(Integer)configProps.get(CONFIG_PROP_PRIMARY_SERVER_QUERY_TIME_INTERVAL) * 60;
  initializeSSL(configProps);
  List<Map<String,Object>> serversConfig=Nester.nest(FAILOVER_SERVERS,configProps);
  boolean sslEnabled=(Boolean)configProps.get(CONFIG_PROP_SSL_ENABLED);
  iEnvironment=initializeEnvironmentProperties(sslEnabled,serversConfig,configProps);
}