Program: 13453
Project: 13453
Buggy source:
@Override public void onBindViewHolder(RecyclerView.ViewHolder viewHolder,int position){
  ImmutablePluginModel plugin=(ImmutablePluginModel)getItem(position);
  if (plugin == null) {
    return;
  }
  PluginViewHolder holder=(PluginViewHolder)viewHolder;
  holder.name.setText(plugin.getDisplayName());
  holder.author.setText(plugin.getAuthorName());
  holder.icon.setImageUrl(plugin.getIcon(),WPNetworkImageView.ImageType.PLUGIN_ICON);
  if (plugin.isInstalled()) {
    @StringRes int textResId;
    @ColorRes int colorResId;
    @DrawableRes int drawableResId;
    if (PluginUtils.isUpdateAvailable(plugin)) {
      textResId=R.string.plugin_needs_update;
      colorResId=R.color.alert_yellow;
      drawableResId=R.drawable.plugin_update_available_icon;
    }
 else     if (plugin.isActive()) {
      textResId=R.string.plugin_active;
      colorResId=R.color.alert_green;
      drawableResId=R.drawable.ic_checkmark_green_24dp;
    }
 else {
      textResId=R.string.plugin_inactive;
      colorResId=R.color.grey;
      drawableResId=R.drawable.ic_cross_grey_600_24dp;
    }
    holder.mStatusText.setText(textResId);
    holder.mStatusText.setTextColor(getResources().getColor(colorResId));
    holder.mStatusIcon.setImageResource(drawableResId);
    holder.mStatusText.setVisibility(View.VISIBLE);
    holder.mStatusIcon.setVisibility(View.VISIBLE);
    holder.mRatingBar.setVisibility(View.GONE);
  }
 else {
    holder.statusText.setVisibility(View.GONE);
    holder.statusIcon.setVisibility(View.GONE);
    holder.ratingBar.setVisibility(View.VISIBLE);
    holder.ratingBar.setRating(plugin.getAverageStarRating());
  }
  if (position == getItemCount() - 1) {
    mViewModel.loadMore(mListType);
  }
}

Fixed version (ground truth):
@Override public void onBindViewHolder(RecyclerView.ViewHolder viewHolder,int position){
  ImmutablePluginModel plugin=(ImmutablePluginModel)getItem(position);
  if (plugin == null) {
    return;
  }
  PluginViewHolder holder=(PluginViewHolder)viewHolder;
  holder.mName.setText(plugin.getDisplayName());
  holder.mAuthor.setText(plugin.getAuthorName());
  holder.mIcon.setImageUrl(plugin.getIcon(),WPNetworkImageView.ImageType.PLUGIN_ICON);
  if (plugin.isInstalled()) {
    @StringRes int textResId;
    @ColorRes int colorResId;
    @DrawableRes int drawableResId;
    if (PluginUtils.isUpdateAvailable(plugin)) {
      textResId=R.string.plugin_needs_update;
      colorResId=R.color.alert_yellow;
      drawableResId=R.drawable.plugin_update_available_icon;
    }
 else     if (plugin.isActive()) {
      textResId=R.string.plugin_active;
      colorResId=R.color.alert_green;
      drawableResId=R.drawable.ic_checkmark_green_24dp;
    }
 else {
      textResId=R.string.plugin_inactive;
      colorResId=R.color.grey;
      drawableResId=R.drawable.ic_cross_grey_600_24dp;
    }
    holder.mStatusText.setText(textResId);
    holder.mStatusText.setTextColor(getResources().getColor(colorResId));
    holder.mStatusIcon.setImageResource(drawableResId);
    holder.mStatusText.setVisibility(View.VISIBLE);
    holder.mStatusIcon.setVisibility(View.VISIBLE);
    holder.mRatingBar.setVisibility(View.GONE);
  }
 else {
    holder.mStatusText.setVisibility(View.GONE);
    holder.mStatusIcon.setVisibility(View.GONE);
    holder.mRatingBar.setVisibility(View.VISIBLE);
    holder.mRatingBar.setRating(plugin.getAverageStarRating());
  }
  if (position == getItemCount() - 1) {
    mViewModel.loadMore(mListType);
  }
}