Program: 14098
Project: 14098
Buggy source:
@Override public void onBindViewHolder(RecyclerView.ViewHolder holder,int position){
  if (getItemViewType(position) == VIEW_TYPE_ENDLIST_INDICATOR) {
    return;
  }
  final PostsListPost post=mPosts.get(position);
  Context context=holder.itemView.getContext();
  if (holder instanceof PostViewHolder) {
    PostViewHolder postHolder=(PostViewHolder)holder;
    if (post.hasTitle()) {
      postHolder.txtTitle.setText(post.getTitle());
    }
 else {
      postHolder.txtTitle.setText("String_Node_Str" + context.getResources().getText(R.string.untitled) + "String_Node_Str");
    }
    if (post.hasExcerpt()) {
      postHolder.txtExcerpt.setVisibility(View.VISIBLE);
      postHolder.txtExcerpt.setText(PostUtils.collapseShortcodes(post.getExcerpt()));
    }
 else {
      postHolder.txtExcerpt.setVisibility(View.GONE);
    }
    if (post.hasFeaturedImageId() || post.hasFeaturedImageUrl()) {
      postHolder.imgFeatured.setVisibility(View.VISIBLE);
      postHolder.imgFeatured.setImageUrl(post.getFeaturedImageUrl(),WPNetworkImageView.ImageType.PHOTO);
    }
 else {
      postHolder.imgFeatured.setVisibility(View.GONE);
    }
    if (post.isLocalDraft()) {
      postHolder.txtDate.setVisibility(View.GONE);
      postHolder.btnTrash.setButtonType(PostListButton.BUTTON_DELETE);
    }
 else {
      postHolder.txtDate.setText(post.getFormattedDate());
      postHolder.txtDate.setVisibility(View.VISIBLE);
      postHolder.btnTrash.setButtonType(PostListButton.BUTTON_TRASH);
    }
    if (post.isUploading()) {
      postHolder.disabledOverlay.setVisibility(View.VISIBLE);
    }
 else {
      postHolder.disabledOverlay.setVisibility(View.GONE);
    }
    updateStatusText(postHolder.txtStatus,post);
    configurePostButtons(postHolder,post);
  }
 else   if (holder instanceof PageViewHolder) {
    PageViewHolder pageHolder=(PageViewHolder)holder;
    if (post.hasTitle()) {
      pageHolder.txtTitle.setText(post.getTitle());
    }
 else {
      pageHolder.txtTitle.setText("String_Node_Str" + context.getResources().getText(R.string.untitled) + "String_Node_Str");
    }
    String dateStr=getPageDateHeaderText(context,post);
    pageHolder.txtDate.setText(dateStr);
    updateStatusText(pageHolder.txtStatus,post);
    boolean showDate;
    if (position > 0) {
      String prevDateStr=getPageDateHeaderText(context,mPosts.get(position - 1));
      showDate=!prevDateStr.equals(dateStr);
    }
 else {
      showDate=true;
    }
    pageHolder.dateHeader.setVisibility(showDate ? View.VISIBLE : View.GONE);
    pageHolder.btnMore.setVisibility(post.isUploading() ? View.GONE : View.VISIBLE);
    pageHolder.btnMore.setOnClickListener(new View.OnClickListener(){
      @Override public void onClick(      View v){
        showPagePopupMenu(v,post);
      }
    }
);
    pageHolder.dividerTop.setVisibility(position == 0 ? View.VISIBLE : View.GONE);
  }
  if (mOnLoadMoreListener != null && position >= mPosts.size() - 1 && position >= PostsListFragment.POSTS_REQUEST_COUNT - 1) {
    mOnLoadMoreListener.onLoadMore();
  }
  holder.itemView.setOnClickListener(new View.OnClickListener(){
    @Override public void onClick(    View v){
      if (mOnPostSelectedListener != null) {
        mOnPostSelectedListener.onPostSelected(post);
      }
    }
  }
);
}

Fixed version (ground truth):
@Override public void onBindViewHolder(RecyclerView.ViewHolder holder,int position){
  if (getItemViewType(position) == VIEW_TYPE_ENDLIST_INDICATOR) {
    return;
  }
  final PostsListPost post=mPosts.get(position);
  Context context=holder.itemView.getContext();
  if (holder instanceof PostViewHolder) {
    PostViewHolder postHolder=(PostViewHolder)holder;
    if (post.hasTitle()) {
      postHolder.txtTitle.setText(post.getTitle());
    }
 else {
      postHolder.txtTitle.setText("String_Node_Str" + context.getResources().getText(R.string.untitled) + "String_Node_Str");
    }
    if (post.hasExcerpt()) {
      postHolder.txtExcerpt.setVisibility(View.VISIBLE);
      postHolder.txtExcerpt.setText(PostUtils.collapseShortcodes(post.getExcerpt()));
    }
 else {
      postHolder.txtExcerpt.setVisibility(View.GONE);
    }
    if (post.hasFeaturedImageId() || post.hasFeaturedImageUrl()) {
      postHolder.imgFeatured.setVisibility(View.VISIBLE);
      postHolder.imgFeatured.setImageUrl(post.getFeaturedImageUrl(),WPNetworkImageView.ImageType.PHOTO);
    }
 else {
      postHolder.imgFeatured.setVisibility(View.GONE);
    }
    if (post.isLocalDraft()) {
      postHolder.txtDate.setVisibility(View.GONE);
      postHolder.btnTrash.setButtonType(PostListButton.BUTTON_DELETE);
    }
 else {
      postHolder.txtDate.setText(post.getFormattedDate());
      postHolder.txtDate.setVisibility(View.VISIBLE);
      postHolder.btnTrash.setButtonType(PostListButton.BUTTON_TRASH);
    }
    if (post.isUploading()) {
      postHolder.disabledOverlay.setVisibility(View.VISIBLE);
    }
 else {
      postHolder.disabledOverlay.setVisibility(View.GONE);
    }
    updateStatusText(postHolder.txtStatus,post);
    configurePostButtons(postHolder,post);
  }
 else   if (holder instanceof PageViewHolder) {
    PageViewHolder pageHolder=(PageViewHolder)holder;
    if (post.hasTitle()) {
      pageHolder.txtTitle.setText(post.getTitle());
    }
 else {
      pageHolder.txtTitle.setText("String_Node_Str" + context.getResources().getText(R.string.untitled) + "String_Node_Str");
    }
    String dateStr=getPageDateHeaderText(context,post);
    pageHolder.txtDate.setText(dateStr);
    updateStatusText(pageHolder.txtStatus,post);
    boolean showDate;
    if (position > 0) {
      String prevDateStr=getPageDateHeaderText(context,mPosts.get(position - 1));
      showDate=!prevDateStr.equals(dateStr);
    }
 else {
      showDate=true;
    }
    pageHolder.dateHeader.setVisibility(showDate ? View.VISIBLE : View.GONE);
    pageHolder.btnMore.setVisibility(post.isUploading() ? View.GONE : View.VISIBLE);
    pageHolder.btnMore.setOnClickListener(new View.OnClickListener(){
      @Override public void onClick(      View v){
        showPagePopupMenu(v,post);
      }
    }
);
    pageHolder.dividerTop.setVisibility(position == 0 ? View.VISIBLE : View.GONE);
    if (post.isUploading()) {
      pageHolder.disabledOverlay.setVisibility(View.VISIBLE);
    }
 else {
      pageHolder.disabledOverlay.setVisibility(View.GONE);
    }
  }
  if (mOnLoadMoreListener != null && position >= mPosts.size() - 1 && position >= PostsListFragment.POSTS_REQUEST_COUNT - 1) {
    mOnLoadMoreListener.onLoadMore();
  }
  holder.itemView.setOnClickListener(new View.OnClickListener(){
    @Override public void onClick(    View v){
      if (mOnPostSelectedListener != null) {
        mOnPostSelectedListener.onPostSelected(post);
      }
    }
  }
);
}