Program: 13384
Project: 13384
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.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);
  }
}

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.isAutoManaged(mViewModel.getSite(),plugin)) {
      textResId=R.string.plugin_auto_managed;
      colorResId=R.color.alert_green;
      drawableResId=R.color.transparent;
    }
 else     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);
  }
}