Program: 16990
Project: 16990
Buggy source:
private OnItemClickListener onListItemClick(){
  OnItemClickListener listener=new OnItemClickListener(){
    @Override public void onItemClick(    AdapterView<?> parent,    View view,    int position,    long id){
      ListEntryItem current=(ListEntryItem)adapter.getItem(position);
      if (current.getType().equals("String_Node_Str")) {
        Intent browseFolder=new Intent(context,BrowsingActivity.class);
        browseFolder.putExtra("String_Node_Str",serverUrl + "String_Node_Str" + current.getId()+ "String_Node_Str"+ current.getUrl());
        startActivity(browseFolder);
      }
 else       if (current.getType().equals("String_Node_Str")) {
        Intent browseFolder=new Intent(context,BrowsingActivity.class);
        browseFolder.putExtra("String_Node_Str",serverUrl + "String_Node_Str" + current.getId());
        startActivity(browseFolder);
      }
 else       if (current.getType().equals("String_Node_Str")) {
        File file=new File(ExternalDirectory.getExternalRootDirectory() + "String_Node_Str" + current.getTitle());
        if (file.exists()) {
          Intent open=new Intent(Intent.ACTION_VIEW,Uri.parse(file.getAbsolutePath()));
          String mime=URLConnection.guessContentTypeFromName(file.getAbsolutePath());
          open.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
          open.setAction(android.content.Intent.ACTION_VIEW);
          open.setDataAndType((Uri.fromFile(file)),mime);
          startActivity(open);
        }
 else {
          StringBuilder sb=new StringBuilder();
          sb.append(serverUrl);
          sb.append("String_Node_Str");
          sb.append(current.getId() + "String_Node_Str");
          sb.append(current.getUrl());
          current.setUrl(sb.toString());
          new DownloadFile().execute(current);
        }
      }
    }
  }
;
  return listener;
}

Fixed version (ground truth):
/** 
 * Will be called everytime an item on this activities' listview was clicked.
 * @return newly created {@link OnItemClickListener}
 */
private OnItemClickListener onListItemClick(){
  OnItemClickListener listener=new OnItemClickListener(){
    @Override public void onItemClick(    AdapterView<?> parent,    View view,    int position,    long id){
      ListEntryItem current=(ListEntryItem)adapter.getItem(position);
      if (current.getType().equals("String_Node_Str")) {
        Intent browseFolder=new Intent(context,BrowsingActivity.class);
        String tmpUrl=serverUrl + "String_Node_Str" + folderId+ "String_Node_Str"+ current.getUrl();
        browseFolder.putExtra("String_Node_Str",tmpUrl);
        startActivity(browseFolder);
      }
 else       if (current.getType().equals("String_Node_Str")) {
        Intent browseFolder=new Intent(context,BrowsingActivity.class);
        folderId=current.getId();
        SharedPreferences prefs=SettingsActivity.getSettings((ContextWrapper)parent.getContext());
        Editor editor=prefs.edit();
        editor.putString("String_Node_Str",folderId);
        editor.commit();
        browseFolder.putExtra("String_Node_Str",serverUrl + "String_Node_Str" + folderId);
        startActivity(browseFolder);
      }
 else       if (current.getType().equals("String_Node_Str")) {
        File file=new File(ExternalDirectory.getExternalRootDirectory() + "String_Node_Str" + current.getTitle());
        if (file.exists()) {
          Intent open=new Intent(Intent.ACTION_VIEW,Uri.parse(file.getAbsolutePath()));
          String mime=URLConnection.guessContentTypeFromName(file.getAbsolutePath());
          open.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
          open.setAction(android.content.Intent.ACTION_VIEW);
          open.setDataAndType((Uri.fromFile(file)),mime);
          startActivity(open);
        }
 else {
          StringBuilder sb=new StringBuilder();
          sb.append(serverUrl);
          sb.append("String_Node_Str");
          sb.append(current.getId() + "String_Node_Str");
          sb.append(current.getUrl());
          current.setUrl(sb.toString());
          new DownloadFile().execute(current);
        }
      }
    }
  }
;
  return listener;
}