Program: 13630
Project: 13630
Buggy source:
private void refreshViews(){
  boolean hasPlugin=mSitePlugin != null || mWPOrgPlugin != null;
  View scrollView=findViewById(R.id.scroll_view);
  if (hasPlugin && scrollView.getVisibility() != View.VISIBLE) {
    AniUtils.fadeIn(scrollView,AniUtils.Duration.MEDIUM);
  }
 else   if (!hasPlugin) {
    scrollView.setVisibility(View.GONE);
  }
  if (mWPOrgPlugin != null) {
    mTitleTextView.setText(mWPOrgPlugin.getName());
    mImageBanner.setImageUrl(mWPOrgPlugin.getBanner(),PHOTO);
    mImageIcon.setImageUrl(mWPOrgPlugin.getIcon(),PLUGIN_ICON);
    setCollapsibleHtmlText(mDescriptionTextView,mWPOrgPlugin.getDescriptionAsHtml());
    setCollapsibleHtmlText(mInstallationTextView,mWPOrgPlugin.getInstallationInstructionsAsHtml());
    setCollapsibleHtmlText(mWhatsNewTextView,mWPOrgPlugin.getWhatsNewAsHtml());
    setCollapsibleHtmlText(mFaqTextView,mWPOrgPlugin.getFaqAsHtml());
    mByLineTextView.setMovementMethod(WPLinkMovementMethod.getInstance());
    mByLineTextView.setText(Html.fromHtml(mWPOrgPlugin.getAuthorAsHtml()));
  }
 else   if (mSitePlugin != null) {
    mTitleTextView.setText(mSitePlugin.getDisplayName());
    if (TextUtils.isEmpty(mSitePlugin.getAuthorUrl())) {
      mByLineTextView.setText(String.format(getString(R.string.plugin_byline),mSitePlugin.getAuthorName()));
    }
 else {
      String authorLink="String_Node_Str" + mSitePlugin.getAuthorUrl() + "String_Node_Str"+ mSitePlugin.getAuthorName()+ "String_Node_Str";
      String byline=String.format(getString(R.string.plugin_byline),authorLink);
      mByLineTextView.setMovementMethod(WPLinkMovementMethod.getInstance());
      mByLineTextView.setText(Html.fromHtml(byline));
    }
  }
  if (!canPluginBeDisabledOrRemoved()) {
    findViewById(R.id.plugin_state_active_container).setVisibility(View.GONE);
  }
 else   if (mSitePlugin != null) {
    mSwitchActive.setChecked(mIsActive);
    mSwitchAutoupdates.setChecked(mIsAutoUpdateEnabled);
  }
  findViewById(R.id.plugin_card_site).setVisibility(mSitePlugin != null ? View.VISIBLE : View.GONE);
  refreshPluginVersionViews();
  refreshRatingsViews();
}

Fixed version (ground truth):
private void refreshViews(){
  boolean hasPlugin=mSitePlugin != null || mWPOrgPlugin != null;
  View scrollView=findViewById(R.id.scroll_view);
  if (hasPlugin && scrollView.getVisibility() != View.VISIBLE) {
    AniUtils.fadeIn(scrollView,AniUtils.Duration.MEDIUM);
  }
 else   if (!hasPlugin) {
    scrollView.setVisibility(View.GONE);
  }
  if (mWPOrgPlugin != null) {
    mTitleTextView.setText(mWPOrgPlugin.getName());
    mImageBanner.setImageUrl(mWPOrgPlugin.getBanner(),PHOTO);
    mImageIcon.setImageUrl(mWPOrgPlugin.getIcon(),PLUGIN_ICON);
    setCollapsibleHtmlText(mDescriptionTextView,mWPOrgPlugin.getDescriptionAsHtml());
    setCollapsibleHtmlText(mInstallationTextView,mWPOrgPlugin.getInstallationInstructionsAsHtml());
    setCollapsibleHtmlText(mWhatsNewTextView,mWPOrgPlugin.getWhatsNewAsHtml());
    setCollapsibleHtmlText(mFaqTextView,mWPOrgPlugin.getFaqAsHtml());
    mByLineTextView.setMovementMethod(WPLinkMovementMethod.getInstance());
    mByLineTextView.setText(Html.fromHtml(mWPOrgPlugin.getAuthorAsHtml()));
  }
 else   if (mSitePlugin != null) {
    mTitleTextView.setText(mSitePlugin.getDisplayName());
    if (TextUtils.isEmpty(mSitePlugin.getAuthorUrl())) {
      mByLineTextView.setText(String.format(getString(R.string.plugin_byline),mSitePlugin.getAuthorName()));
    }
 else {
      String authorLink="String_Node_Str" + mSitePlugin.getAuthorUrl() + "String_Node_Str"+ mSitePlugin.getAuthorName()+ "String_Node_Str";
      String byline=String.format(getString(R.string.plugin_byline),authorLink);
      mByLineTextView.setMovementMethod(WPLinkMovementMethod.getInstance());
      mByLineTextView.setText(Html.fromHtml(byline));
    }
  }
  if (!canPluginBeDisabledOrRemoved()) {
    findViewById(R.id.plugin_state_active_container).setVisibility(View.GONE);
  }
 else   if (mSitePlugin != null) {
    mSwitchActive.setChecked(mIsActive);
  }
  mSwitchAutoupdates.setChecked(mIsAutoUpdateEnabled);
  findViewById(R.id.plugin_card_site).setVisibility(mSitePlugin != null ? View.VISIBLE : View.GONE);
  refreshPluginVersionViews();
  refreshRatingsViews();
}