Program: 162626
Project: 162626
Buggy source:
public void bbar(String text){
  try {
    buttons.removeAllViews();
    Drawable arrow=getResources().getDrawable(R.drawable.abc_ic_ab_back_holo_dark);
    Bundle b=utils.getPaths(text,getActivity());
    ArrayList<String> names=b.getStringArrayList("String_Node_Str");
    ArrayList<String> rnames=new ArrayList<String>();
    for (int i=names.size() - 1; i >= 0; i--) {
      rnames.add(names.get(i));
    }
    ArrayList<String> paths=b.getStringArrayList("String_Node_Str");
    final ArrayList<String> rpaths=new ArrayList<String>();
    for (int i=paths.size() - 1; i >= 0; i--) {
      rpaths.add(paths.get(i));
    }
    for (int i=0; i < names.size(); i++) {
      ImageView v=new ImageView(getActivity());
      v.setImageDrawable(arrow);
      LinearLayout.LayoutParams params=new LinearLayout.LayoutParams(LinearLayout.LayoutParams.WRAP_CONTENT,LinearLayout.LayoutParams.WRAP_CONTENT);
      params.gravity=Gravity.CENTER_VERTICAL;
      v.setLayoutParams(params);
      final int index=i;
      if (rpaths.get(i).equals("String_Node_Str")) {
        ib=new ImageButton(getActivity());
        ib.setImageDrawable(icons.getRootDrawable());
        ib.setBackgroundColor(Color.parseColor(skin));
        ib.setOnClickListener(new View.OnClickListener(){
          public void onClick(          View p1){
            loadlist(new File("String_Node_Str"),false);
            timer.cancel();
            timer.start();
          }
        }
);
        buttons.addView(ib);
        if (names.size() - i != 1)         buttons.addView(v);
      }
 else       if (rpaths.get(i).equals(Environment.getExternalStorageDirectory().getPath())) {
        ib=new ImageButton(getActivity());
        ib.setImageDrawable(icons.getSdDrawable());
        ib.setBackgroundColor(Color.parseColor(skin));
        ib.setOnClickListener(new View.OnClickListener(){
          public void onClick(          View p1){
            loadlist(new File(rpaths.get(index)),true);
            timer.cancel();
            timer.start();
          }
        }
);
        buttons.addView(ib);
        if (names.size() - i != 1)         buttons.addView(v);
      }
 else {
        Button button=new Button(getActivity());
        button.setText(rnames.get(index));
        button.setTextColor(getResources().getColor(android.R.color.white));
        button.setTextSize(13);
        button.setBackgroundResource(0);
        button.setOnClickListener(new Button.OnClickListener(){
          public void onClick(          View p1){
            loadlist(new File(rpaths.get(index)),true);
            timer.cancel();
            timer.start();
          }
        }
);
        button.setOnLongClickListener(new View.OnLongClickListener(){
          @Override public boolean onLongClick(          View view){
            File file1=new File(rpaths.get(index));
            copyToClipboard(getActivity(),file1.getPath());
            Toast.makeText(getActivity(),res.getString(R.string.pathcopied),Toast.LENGTH_SHORT).show();
            return false;
          }
        }
);
        buttons.addView(button);
        if (names.size() - i != 1)         buttons.addView(v);
      }
    }
    File f=new File(text);
    TextView textView=(TextView)pathbar.findViewById(R.id.pathname);
    String used=utils.readableFileSize(f.getTotalSpace() - f.getFreeSpace());
    String free=utils.readableFileSize(f.getFreeSpace());
    textView.setText(res.getString(R.string.used) + "String_Node_Str" + used+ "String_Node_Str"+ res.getString(R.string.free)+ "String_Node_Str"+ free);
    TextView bapath=(TextView)pathbar.findViewById(R.id.fullpath);
    bapath.setAllCaps(true);
    bapath.setText(f.getPath());
    scroll.post(new Runnable(){
      @Override public void run(){
        scroll.fullScroll(View.FOCUS_RIGHT);
        scroll1.fullScroll(View.FOCUS_RIGHT);
      }
    }
);
    if (buttons.getVisibility() == View.VISIBLE) {
      timer.cancel();
      timer.start();
    }
  }
 catch (  Exception e) {
    e.printStackTrace();
    System.out.println("String_Node_Str");
  }
}

Fixed version (ground truth):
public void bbar(String text){
  try {
    buttons.removeAllViews();
    Drawable arrow=getResources().getDrawable(R.drawable.abc_ic_ab_back_holo_dark);
    Bundle b=utils.getPaths(text,getActivity());
    ArrayList<String> names=b.getStringArrayList("String_Node_Str");
    ArrayList<String> rnames=new ArrayList<String>();
    for (int i=names.size() - 1; i >= 0; i--) {
      rnames.add(names.get(i));
    }
    ArrayList<String> paths=b.getStringArrayList("String_Node_Str");
    final ArrayList<String> rpaths=new ArrayList<String>();
    for (int i=paths.size() - 1; i >= 0; i--) {
      rpaths.add(paths.get(i));
    }
    for (int i=0; i < names.size(); i++) {
      ImageView v=new ImageView(getActivity());
      v.setImageDrawable(arrow);
      LinearLayout.LayoutParams params=new LinearLayout.LayoutParams(LinearLayout.LayoutParams.WRAP_CONTENT,LinearLayout.LayoutParams.WRAP_CONTENT);
      params.gravity=Gravity.CENTER_VERTICAL;
      v.setLayoutParams(params);
      final int index=i;
      if (rpaths.get(i).equals("String_Node_Str")) {
        ib=new ImageButton(getActivity());
        ib.setImageDrawable(icons.getRootDrawable());
        ib.setBackgroundColor(Color.parseColor(skin));
        ib.setOnClickListener(new View.OnClickListener(){
          public void onClick(          View p1){
            mainActivity.getFragment().getTab().loadlist(new File("String_Node_Str"),false);
            timer.cancel();
            timer.start();
          }
        }
);
        buttons.addView(ib);
        if (names.size() - i != 1)         buttons.addView(v);
      }
 else       if (rpaths.get(i).equals(Environment.getExternalStorageDirectory().getPath())) {
        ib=new ImageButton(getActivity());
        ib.setImageDrawable(icons.getSdDrawable());
        ib.setBackgroundColor(Color.parseColor(skin));
        ib.setOnClickListener(new View.OnClickListener(){
          public void onClick(          View p1){
            mainActivity.getFragment().getTab().loadlist(new File("String_Node_Str"),false);
            timer.cancel();
            timer.start();
          }
        }
);
        buttons.addView(ib);
        if (names.size() - i != 1)         buttons.addView(v);
      }
 else {
        Button button=new Button(getActivity());
        button.setText(rnames.get(index));
        button.setTextColor(getResources().getColor(android.R.color.white));
        button.setTextSize(13);
        button.setBackgroundResource(0);
        button.setOnClickListener(new Button.OnClickListener(){
          public void onClick(          View p1){
            mainActivity.getFragment().getTab().loadlist(new File("String_Node_Str"),false);
            timer.cancel();
            timer.start();
          }
        }
);
        button.setOnLongClickListener(new View.OnLongClickListener(){
          @Override public boolean onLongClick(          View view){
            File file1=new File(rpaths.get(index));
            copyToClipboard(getActivity(),file1.getPath());
            Toast.makeText(getActivity(),res.getString(R.string.pathcopied),Toast.LENGTH_SHORT).show();
            return false;
          }
        }
);
        buttons.addView(button);
        if (names.size() - i != 1)         buttons.addView(v);
      }
    }
    File f=new File(text);
    TextView textView=(TextView)pathbar.findViewById(R.id.pathname);
    String used=utils.readableFileSize(f.getTotalSpace() - f.getFreeSpace());
    String free=utils.readableFileSize(f.getFreeSpace());
    textView.setText(res.getString(R.string.used) + "String_Node_Str" + used+ "String_Node_Str"+ res.getString(R.string.free)+ "String_Node_Str"+ free);
    TextView bapath=(TextView)pathbar.findViewById(R.id.fullpath);
    bapath.setAllCaps(true);
    bapath.setText(f.getPath());
    scroll.post(new Runnable(){
      @Override public void run(){
        scroll.fullScroll(View.FOCUS_RIGHT);
        scroll1.fullScroll(View.FOCUS_RIGHT);
      }
    }
);
    if (buttons.getVisibility() == View.VISIBLE) {
      timer.cancel();
      timer.start();
    }
  }
 catch (  Exception e) {
    e.printStackTrace();
    System.out.println("String_Node_Str");
  }
}