Program: 24334
Project: 24334
Buggy source:
private void save_positions(){
  card_adapter adapter;
  BufferedWriter out;
  String url, group;
  List<String> feeds, lines;
  Boolean found_url=false;
  final int size=current_groups.size();
  for (int i=1; i < size; i++) {
    try {
      group=current_groups.get(i);
      adapter=(card_adapter)((fragment_card)fragment_manager.findFragmentByTag("String_Node_Str" + viewpager.getId() + "String_Node_Str"+ Integer.toString(i))).getListView().getAdapter();
      if (adapter.getCount() > 0) {
        feeds=read_csv_to_list(new String[]{storage + "String_Node_Str" + group+ "String_Node_Str","String_Node_Str"}).get(0);
        found_url=false;
        url=adapter.return_latest_url();
        if (!url.isEmpty()) {
          for (          String feed : feeds) {
            lines=read_file_to_list(storage + "String_Node_Str" + feed+ "String_Node_Str");
            delete(storage + "String_Node_Str" + feed+ "String_Node_Str");
            out=new BufferedWriter(new FileWriter(storage + "String_Node_Str" + feed+ "String_Node_Str",true));
            for (            String line : lines) {
              if (!found_url) {
                if (!line.contains(url))                 out.write(line + "String_Node_Str");
 else                 if (!line.substring(0,9).equals("String_Node_Str")) {
                  out.write("String_Node_Str" + line + "String_Node_Str");
                  found_url=true;
                }
 else                 out.write(line + "String_Node_Str");
              }
 else               out.write(line + "String_Node_Str");
            }
            out.close();
            if (found_url)             break;
          }
          sort_group_content_by_time(group);
        }
      }
    }
 catch (    Exception e) {
    }
  }
  if (found_url)   sort_group_content_by_time(all_string);
}

Fixed version (ground truth):
private static void save_positions(){
  card_adapter adapter;
  BufferedWriter out;
  String url, group;
  List<String> feeds, lines;
  Boolean found_url=false;
  final int size=current_groups.size();
  for (int i=1; i < size; i++) {
    try {
      group=current_groups.get(i);
      adapter=(card_adapter)((fragment_card)fragment_manager.findFragmentByTag("String_Node_Str" + viewpager.getId() + "String_Node_Str"+ Integer.toString(i))).getListView().getAdapter();
      if (adapter.getCount() > 0) {
        feeds=read_csv_to_list(new String[]{storage + "String_Node_Str" + group+ "String_Node_Str","String_Node_Str"}).get(0);
        found_url=false;
        url=adapter.return_latest_url();
        if (!url.isEmpty()) {
          for (          String feed : feeds) {
            lines=read_file_to_list(storage + "String_Node_Str" + feed+ "String_Node_Str");
            delete(storage + "String_Node_Str" + feed+ "String_Node_Str");
            out=new BufferedWriter(new FileWriter(storage + "String_Node_Str" + feed+ "String_Node_Str",true));
            for (            String line : lines) {
              if (!found_url) {
                if (!line.contains(url))                 out.write(line + "String_Node_Str");
 else                 if (!line.substring(0,9).equals("String_Node_Str")) {
                  out.write("String_Node_Str" + line + "String_Node_Str");
                  found_url=true;
                }
 else                 out.write(line + "String_Node_Str");
              }
 else               out.write(line + "String_Node_Str");
            }
            out.close();
            if (found_url)             break;
          }
          sort_group_content_by_time(group);
        }
      }
    }
 catch (    Exception e) {
    }
  }
  if (found_url)   sort_group_content_by_time(all_string);
}