Program: 19874
Project: 19874
Buggy source:
private boolean getGameList(long folderId,String folderName){
  Context ctx=RFGenerationService.this.getApplicationContext();
  SharedPreferences settings=ctx.getSharedPreferences(Constants.PREFS_FILE,0);
  try {
    Connection.Response document=Jsoup.connect(Constants.FUNCTION_CSV + "String_Node_Str" + Constants.PARAM_FOLDER+ "String_Node_Str"+ URLEncoder.encode(folderName)+ "String_Node_Str"+ Constants.PARAM_USERNAME+ "String_Node_Str"+ settings.getString(Constants.PREFS_USERNAME,"String_Node_Str")).cookie(Constants.LOGIN_COOKIE,LoginScraper.getCookie(ctx)).timeout(Constants.TIMEOUT).execute();
    CSVReader reader=new CSVReader(new InputStreamReader(new ByteArrayInputStream(document.bodyAsBytes())));
    String[] nextLine=reader.readNext();
    if (nextLine.length <= 1)     return true;
    int year=0;
    Console console=new Console();
    String[] splitId;
    List<ContentValues> gameList=new ArrayList<ContentValues>();
    while ((nextLine=reader.readNext()) != null) {
      year=0;
      console.setId(0);
      splitId=nextLine[0].split("String_Node_Str");
      console.setId(splitId[1]);
      try {
        year=Integer.parseInt(nextLine[6]);
      }
 catch (      Exception e) {
      }
      if (console.getId() == 0)       continue;
      ContentValues gameInsert=new ContentValues();
      gameInsert.put("String_Node_Str",nextLine[0]);
      gameInsert.put("String_Node_Str",console.getId());
      gameInsert.put("String_Node_Str",nextLine[1]);
      gameInsert.put("String_Node_Str",splitId[0]);
      gameInsert.put("String_Node_Str",nextLine[2]);
      gameInsert.put("String_Node_Str",nextLine[3]);
      gameInsert.put("String_Node_Str",nextLine[4]);
      gameInsert.put("String_Node_Str",nextLine[5]);
      if (year > 0)       gameInsert.put("String_Node_Str",year);
      gameInsert.put("String_Node_Str",nextLine[7]);
      gameInsert.put("String_Node_Str",folderName);
      gameInsert.put("String_Node_Str",Integer.parseInt(nextLine[8]));
      gameInsert.put("String_Node_Str",Integer.parseInt(nextLine[9]));
      gameInsert.put("String_Node_Str",Integer.parseInt(nextLine[10]));
      gameList.add(gameInsert);
    }
    getContentResolver().bulkInsert(Uri.withAppendedPath(RFGenerationProvider.COLLECTION_URI,Long.toString(folderId)),gameList.toArray(new ContentValues[]{}));
  }
 catch (  IOException e) {
    e.printStackTrace();
    return false;
  }
  return true;
}

Fixed version (ground truth):
private boolean getGameList(long folderId,String folderName){
  Context ctx=RFGenerationService.this.getApplicationContext();
  SharedPreferences settings=ctx.getSharedPreferences(Constants.PREFS_FILE,0);
  try {
    Connection.Response document=Jsoup.connect(Constants.FUNCTION_CSV + "String_Node_Str" + Constants.PARAM_FOLDER+ "String_Node_Str"+ URLEncoder.encode(folderName)+ "String_Node_Str"+ Constants.PARAM_USERNAME+ "String_Node_Str"+ settings.getString(Constants.PREFS_USERNAME,"String_Node_Str")).cookie(Constants.LOGIN_COOKIE,LoginScraper.getCookie(ctx)).timeout(Constants.TIMEOUT).execute();
    CSVReader reader=new CSVReader(new InputStreamReader(new ByteArrayInputStream(document.bodyAsBytes())));
    String[] nextLine=reader.readNext();
    if (nextLine.length <= 1)     return true;
    int year=0;
    Console console=new Console();
    String[] splitId;
    List<ContentValues> gameList=new ArrayList<ContentValues>();
    while ((nextLine=reader.readNext()) != null) {
      year=0;
      console.setId(0);
      splitId=nextLine[0].split("String_Node_Str");
      console.setId(splitId[1]);
      try {
        year=Integer.parseInt(nextLine[6]);
      }
 catch (      Exception e) {
      }
      if (console.getId() == 0)       continue;
      ContentValues gameInsert=new ContentValues();
      gameInsert.put("String_Node_Str",nextLine[0]);
      gameInsert.put("String_Node_Str",console.getId());
      gameInsert.put("String_Node_Str",nextLine[1]);
      gameInsert.put("String_Node_Str",splitId[0]);
      gameInsert.put("String_Node_Str",nextLine[2]);
      gameInsert.put("String_Node_Str",nextLine[3]);
      gameInsert.put("String_Node_Str",nextLine[4]);
      gameInsert.put("String_Node_Str",nextLine[5]);
      if (year > 0)       gameInsert.put("String_Node_Str",year);
      gameInsert.put("String_Node_Str",nextLine[7]);
      gameInsert.put("String_Node_Str",folderName);
      gameInsert.put("String_Node_Str",Float.parseFloat(nextLine[8]));
      gameInsert.put("String_Node_Str",Float.parseFloat(nextLine[9]));
      gameInsert.put("String_Node_Str",Float.parseFloat(nextLine[10]));
      gameList.add(gameInsert);
    }
    getContentResolver().bulkInsert(Uri.withAppendedPath(RFGenerationProvider.COLLECTION_URI,Long.toString(folderId)),gameList.toArray(new ContentValues[]{}));
  }
 catch (  IOException e) {
    e.printStackTrace();
    return false;
  }
  return true;
}