Program: 15220
Project: 15220
Buggy source:
protected void deleteComments(){
  for (int i=0; i < checkedComments.size(); i++) {
    if (checkedComments.get(i).toString().equals("String_Node_Str")) {
      client=new XMLRPCClient(WordPress.currentBlog.getUrl(),WordPress.currentBlog.getHttpuser(),WordPress.currentBlog.getHttppassword());
      Comment listRow=(Comment)getListView().getItemAtPosition(i);
      String curCommentID=listRow.commentID;
      Object[] params={WordPress.currentBlog.getBlogId(),WordPress.currentBlog.getUsername(),WordPress.currentBlog.getPassword(),curCommentID};
      try {
        client.call("String_Node_Str",params);
      }
 catch (      final XMLRPCException e) {
        moderateErrorMsg=e.getLocalizedMessage();
      }
    }
  }
  getActivity().dismissDialog(ID_DIALOG_DELETING);
  Thread action=new Thread(){
    public void run(){
      if (moderateErrorMsg == "String_Node_Str") {
        String msg=getResources().getText(R.string.comment_moderated).toString();
        if (checkedCommentTotal > 1)         msg=getResources().getText(R.string.comments_moderated).toString();
        Toast.makeText(getActivity().getApplicationContext(),msg,Toast.LENGTH_SHORT).show();
        checkedCommentTotal=0;
        refreshComments(false,false,false);
      }
 else {
        FragmentTransaction ft=getFragmentManager().beginTransaction();
        WPAlertDialogFragment alert=WPAlertDialogFragment.newInstance(moderateErrorMsg);
        alert.show(ft,"String_Node_Str");
      }
    }
  }
;
  getActivity().runOnUiThread(action);
  pd=new ProgressDialog(getActivity().getApplicationContext());
}

Fixed version (ground truth):
protected void deleteComments(){
  for (int i=0; i < checkedComments.size(); i++) {
    if (checkedComments.get(i).toString().equals("String_Node_Str")) {
      client=new XMLRPCClient(WordPress.currentBlog.getUrl(),WordPress.currentBlog.getHttpuser(),WordPress.currentBlog.getHttppassword());
      Comment listRow=(Comment)getListView().getItemAtPosition(i);
      String curCommentID=listRow.commentID;
      Object[] params={WordPress.currentBlog.getBlogId(),WordPress.currentBlog.getUsername(),WordPress.currentBlog.getPassword(),curCommentID};
      try {
        client.call("String_Node_Str",params);
      }
 catch (      final XMLRPCException e) {
        moderateErrorMsg=e.getLocalizedMessage();
      }
    }
  }
  getActivity().dismissDialog(ID_DIALOG_DELETING);
  Thread action=new Thread(){
    public void run(){
      if (moderateErrorMsg == "String_Node_Str") {
        String msg=getResources().getText(R.string.comment_moderated).toString();
        if (checkedCommentTotal > 1)         msg=getResources().getText(R.string.comments_moderated).toString();
        Toast.makeText(getActivity().getApplicationContext(),msg,Toast.LENGTH_SHORT).show();
        checkedCommentTotal=0;
        hideModerationBar();
        refreshComments(false,false,false);
      }
 else {
        FragmentTransaction ft=getFragmentManager().beginTransaction();
        WPAlertDialogFragment alert=WPAlertDialogFragment.newInstance(moderateErrorMsg);
        alert.show(ft,"String_Node_Str");
      }
    }
  }
;
  getActivity().runOnUiThread(action);
  pd=new ProgressDialog(getActivity().getApplicationContext());
}