Program: 134565
Project: 134565
Buggy source:
@Override public void onPostStateChange(final PostState postState){
  Logger.debug("String_Node_Str");
  final MainActivity activity=(MainActivity)getActivity();
  if (editText != null) {
    editText.removeTextChangedListener(this);
    editText.setTextKeepState(postState.getText());
    editText.addTextChangedListener(this);
    updateTextCount(editText.getText());
    new UIHandler(){
      @Override public void run(){
        editText.setSelection(postState.getSelectionStart(),postState.getSelectionEnd());
      }
    }
.postAtFrontOfQueue();
  }
  if (viewGroupReply != null) {
    if (postState.getInReplyToStatusID() >= 0) {
      viewGroupReply.setVisibility(View.VISIBLE);
      final Account account=activity.getCurrentAccount();
      TwitterUtils.tryGetStatus(account,postState.getInReplyToStatusID(),new TwitterUtils.StatusCallback(){
        @Override public void onCallback(        Status status){
          View header=viewGroupReply.findViewById(R.id.layout_post_reply_status);
          header=new StatusViewModel(status,account).getView(activity,activity.getLayoutInflater(),header);
          header.setBackgroundColor(getResources().getColor(R.color.transparent));
          header.setClickable(false);
        }
      }
);
      ImageButton imageButtonDeleteReply=(ImageButton)viewGroupReply.findViewById(R.id.button_post_reply_delete);
      imageButtonDeleteReply.setOnClickListener(this);
    }
 else {
      viewGroupReply.setVisibility(View.GONE);
    }
  }
  if (viewGroupMedia != null) {
    ImageView imageViewMedia=(ImageView)viewGroupMedia.findViewById(R.id.image_post_media);
    if (TextUtils.isEmpty(postState.getMediaFilePath())) {
      viewGroupMedia.setVisibility(View.GONE);
    }
 else {
      viewGroupMedia.setVisibility(View.VISIBLE);
    }
    new BitmapThumbnailTask(activity,postState.getMediaFilePath(),imageViewMedia).execute();
  }
}

Fixed version (ground truth):
@Override public void onPostStateChange(final PostState postState){
  Logger.debug("String_Node_Str");
  final MainActivity activity=(MainActivity)getActivity();
  if (editText != null) {
    final int start=postState.getSelectionStart();
    final int end=postState.getSelectionEnd();
    editText.removeTextChangedListener(this);
    editText.setTextKeepState(postState.getText());
    editText.addTextChangedListener(this);
    updateTextCount(editText.getText());
    new UIHandler(){
      @Override public void run(){
        editText.setSelection(start,end);
      }
    }
.postAtFrontOfQueue();
  }
  if (viewGroupReply != null) {
    if (postState.getInReplyToStatusID() >= 0) {
      viewGroupReply.setVisibility(View.VISIBLE);
      final Account account=activity.getCurrentAccount();
      TwitterUtils.tryGetStatus(account,postState.getInReplyToStatusID(),new TwitterUtils.StatusCallback(){
        @Override public void onCallback(        Status status){
          View header=viewGroupReply.findViewById(R.id.layout_post_reply_status);
          header=new StatusViewModel(status,account).getView(activity,activity.getLayoutInflater(),header);
          header.setBackgroundColor(getResources().getColor(R.color.transparent));
          header.setClickable(false);
        }
      }
);
      ImageButton imageButtonDeleteReply=(ImageButton)viewGroupReply.findViewById(R.id.button_post_reply_delete);
      imageButtonDeleteReply.setOnClickListener(this);
    }
 else {
      viewGroupReply.setVisibility(View.GONE);
    }
  }
  if (viewGroupMedia != null) {
    ImageView imageViewMedia=(ImageView)viewGroupMedia.findViewById(R.id.image_post_media);
    if (TextUtils.isEmpty(postState.getMediaFilePath())) {
      viewGroupMedia.setVisibility(View.GONE);
    }
 else {
      viewGroupMedia.setVisibility(View.VISIBLE);
    }
    new BitmapThumbnailTask(activity,postState.getMediaFilePath(),imageViewMedia).execute();
  }
}