Program: 14899
Project: 14899
Buggy source:
@Override protected void onPostExecute(Boolean result){
  mIsPostTaskRunning=false;
  if (!hasActivity())   return;
  if (!result) {
    requestPost();
    return;
  }
  getActivity().setTitle(mPost.getTitle());
  showFollowedStatus(txtFollow,mPost.isFollowedByCurrentUser);
  if (mPost.numLikes > 0 && mLayoutLikes.getVisibility() == View.GONE)   mLayoutLikes.setVisibility(View.INVISIBLE);
  if (mPost.hasTitle()) {
    txtTitle.setText(mPost.getTitle());
  }
 else {
    txtTitle.setText(R.string.reader_untitled_post);
  }
  txtBlogName.setText(mPost.getBlogName());
  txtDate.setText(DateTimeUtils.javaDateToTimeSpan(mPost.getDatePublished()));
  if (mPost.hasAuthorName() && !mPost.getAuthorName().equals(mPost.getBlogName())) {
    txtAuthorName.setText(mPost.getAuthorName());
    txtAuthorName.setVisibility(View.VISIBLE);
  }
 else {
    txtAuthorName.setVisibility(View.GONE);
  }
  if (mPost.hasPostAvatar()) {
    int avatarSz=getResources().getDimensionPixelSize(R.dimen.avatar_sz_medium);
    imgAvatar.setImageUrl(mPost.getPostAvatarForDisplay(avatarSz),WPNetworkImageView.ImageType.AVATAR);
    imgAvatar.setVisibility(View.VISIBLE);
  }
 else {
    imgAvatar.setVisibility(View.GONE);
  }
  if (showFeaturedImage) {
    imgFeatured.setVisibility(View.VISIBLE);
    imgFeatured.setImageUrl(featuredImageUrl,WPNetworkImageView.ImageType.PHOTO);
    imgFeatured.setOnClickListener(new View.OnClickListener(){
      @Override public void onClick(      View v){
        showPhotoViewer(mPost.getFeaturedImage());
      }
    }
);
  }
 else {
    imgFeatured.setVisibility(View.GONE);
  }
  imgBtnReblog.setVisibility(mPost.isWP() ? View.VISIBLE : View.GONE);
  imgBtnReblog.setSelected(mPost.isRebloggedByCurrentUser);
  if (mPost.isWP()) {
    imgBtnReblog.setOnClickListener(new View.OnClickListener(){
      @Override public void onClick(      View view){
        doPostReblog(imgBtnReblog,mPost);
      }
    }
);
  }
  if (mPost.isWP() && mPost.isCommentsOpen) {
    imgBtnComment.setVisibility(View.VISIBLE);
    imgBtnComment.setOnClickListener(new View.OnClickListener(){
      @Override public void onClick(      View v){
        toggleShowAddCommentBox();
      }
    }
);
  }
 else {
    imgBtnComment.setVisibility(View.GONE);
  }
  txtTitle.setOnClickListener(new View.OnClickListener(){
    @Override public void onClick(    View v){
      ReaderActivityLauncher.openUrl(getActivity(),mPost.getUrl());
    }
  }
);
  if (mPost.hasBlogUrl()) {
    View.OnClickListener clickListener=new View.OnClickListener(){
      @Override public void onClick(      View v){
        ReaderActivityLauncher.openUrl(getActivity(),mPost.getBlogUrl());
      }
    }
;
    txtBlogName.setOnClickListener(clickListener);
    txtAuthorName.setOnClickListener(clickListener);
    imgAvatar.setOnClickListener(clickListener);
  }
  mWebView.setWebViewClient(readerWebViewClient);
  new Handler().postDelayed(new Runnable(){
    @Override public void run(){
      if (getListView().getAdapter() == null)       getListView().setAdapter(getCommentAdapter());
      if (mWebView.getVisibility() != View.VISIBLE) {
        mWebView.setVisibility(View.VISIBLE);
        AppLog.w(T.READER,"String_Node_Str");
      }
    }
  }
,WEBVIEW_DELAY_MS);
  mWebView.loadDataWithBaseURL(null,postHtml,"String_Node_Str","String_Node_Str",null);
  mLayoutIcons.setVisibility(mPost.isWP() ? View.VISIBLE : View.GONE);
  refreshLikes(false);
  refreshComments();
  if (!mHasAlreadyUpdatedPost) {
    updatePost();
    mHasAlreadyUpdatedPost=true;
  }
  getListView().setVisibility(View.VISIBLE);
}

Fixed version (ground truth):
@Override protected void onPostExecute(Boolean result){
  mIsPostTaskRunning=false;
  if (!hasActivity())   return;
  if (!result) {
    requestPost();
    return;
  }
  getActivity().setTitle(mPost.getTitle());
  showFollowedStatus(txtFollow,mPost.isFollowedByCurrentUser);
  if (mPost.numLikes > 0 && mLayoutLikes.getVisibility() == View.GONE)   mLayoutLikes.setVisibility(View.INVISIBLE);
  if (mPost.hasTitle()) {
    txtTitle.setText(mPost.getTitle());
  }
 else {
    txtTitle.setText(R.string.reader_untitled_post);
  }
  txtBlogName.setText(mPost.getBlogName());
  txtDate.setText(DateTimeUtils.javaDateToTimeSpan(mPost.getDatePublished()));
  if (mPost.hasAuthorName() && !mPost.getAuthorName().equals(mPost.getBlogName())) {
    txtAuthorName.setText(mPost.getAuthorName());
    txtAuthorName.setVisibility(View.VISIBLE);
  }
 else {
    txtAuthorName.setVisibility(View.GONE);
  }
  if (mPost.hasPostAvatar()) {
    int avatarSz=getResources().getDimensionPixelSize(R.dimen.avatar_sz_medium);
    imgAvatar.setImageUrl(mPost.getPostAvatarForDisplay(avatarSz),WPNetworkImageView.ImageType.AVATAR);
    imgAvatar.setVisibility(View.VISIBLE);
  }
 else {
    imgAvatar.setVisibility(View.GONE);
  }
  if (showFeaturedImage) {
    imgFeatured.setVisibility(View.VISIBLE);
    imgFeatured.setImageUrl(featuredImageUrl,WPNetworkImageView.ImageType.PHOTO);
    imgFeatured.setOnClickListener(new View.OnClickListener(){
      @Override public void onClick(      View v){
        showPhotoViewer(mPost.getFeaturedImage());
      }
    }
);
  }
 else {
    imgFeatured.setVisibility(View.GONE);
  }
  imgBtnReblog.setVisibility(mPost.isWP() ? View.VISIBLE : View.GONE);
  imgBtnReblog.setSelected(mPost.isRebloggedByCurrentUser);
  if (mPost.isWP()) {
    imgBtnReblog.setOnClickListener(new View.OnClickListener(){
      @Override public void onClick(      View view){
        doPostReblog(imgBtnReblog,mPost);
      }
    }
);
  }
  if (mPost.isWP() && mPost.isCommentsOpen) {
    imgBtnComment.setVisibility(View.VISIBLE);
    imgBtnComment.setOnClickListener(new View.OnClickListener(){
      @Override public void onClick(      View v){
        toggleShowAddCommentBox();
      }
    }
);
  }
 else {
    imgBtnComment.setVisibility(View.GONE);
  }
  txtTitle.setOnClickListener(new View.OnClickListener(){
    @Override public void onClick(    View v){
      ReaderActivityLauncher.openUrl(getActivity(),mPost.getUrl());
    }
  }
);
  if (mPost.hasBlogUrl()) {
    View.OnClickListener clickListener=new View.OnClickListener(){
      @Override public void onClick(      View v){
        ReaderActivityLauncher.openUrl(getActivity(),mPost.getBlogUrl());
      }
    }
;
    txtBlogName.setOnClickListener(clickListener);
    txtAuthorName.setOnClickListener(clickListener);
    imgAvatar.setOnClickListener(clickListener);
  }
  mWebView.setWebViewClient(readerWebViewClient);
  mWebView.loadDataWithBaseURL(null,postHtml,"String_Node_Str","String_Node_Str",null);
  if (getListView().getAdapter() == null)   getListView().setAdapter(getCommentAdapter());
  refreshLikes(false);
  refreshComments();
  if (!mHasAlreadyUpdatedPost) {
    updatePost();
    mHasAlreadyUpdatedPost=true;
  }
  mLayoutIcons.setVisibility(mPost.isWP() ? View.VISIBLE : View.GONE);
  if (getListView().getVisibility() != View.VISIBLE) {
    new Handler().postDelayed(new Runnable(){
      @Override public void run(){
        if (hasActivity())         getListView().setVisibility(View.VISIBLE);
      }
    }
,500L);
  }
}