Program: 163147
Project: 163147
Buggy source:
public void setIssue(RepoInfo repoInfo,final Issue issue){
  if (this.issue == null) {
    this.issue=issue;
    title.setText(issue.title);
    if (issue.user != null) {
      profileName.setText(issue.user.login);
      profileEmail.setText(TimeUtils.getTimeAgoString(issue.created_at));
      ImageLoader instance=ImageLoader.getInstance();
      instance.displayImage(issue.user.avatar_url,profileIcon);
      OnClickListener issueUserClick=new OnClickListener(){
        @Override public void onClick(        View v){
          Intent launcherIntent=ProfileActivity.createLauncherIntent(v.getContext(),issue.user);
          v.getContext().startActivity(launcherIntent);
        }
      }
;
      profileName.setOnClickListener(issueUserClick);
      profileEmail.setOnClickListener(issueUserClick);
      profileIcon.setOnClickListener(issueUserClick);
    }
    if (!TextUtils.isEmpty(issue.body_html)) {
      String htmlCode=HtmlUtils.format(issue.body_html).toString();
      HttpImageGetter imageGetter=new HttpImageGetter(getContext());
      imageGetter.repoInfo(repoInfo);
      imageGetter.bind(body,htmlCode,issue.number);
      body.setMovementMethod(UiUtils.CHECKING_LINK_METHOD);
    }
 else {
      body.setText(Html.fromHtml("String_Node_Str" + getResources().getString(R.string.no_description_provided) + "String_Node_Str"));
      body.setTextColor(getResources().getColor(R.color.gray_github_medium));
    }
    if (issue.labels != null && issue.labels.size() > 0) {
      labelsLayout.setVisibility(View.VISIBLE);
      int margin=getResources().getDimensionPixelOffset(R.dimen.gapSmall);
      for (      Label label : issue.labels) {
        LabelView labelView=new LabelView(getContext());
        labelView.setLabel(label);
        labelsLayout.addView(labelView);
        if (labelView.getLayoutParams() != null && labelView.getLayoutParams() instanceof FlowLayout.LayoutParams) {
          FlowLayout.LayoutParams layoutParams=(FlowLayout.LayoutParams)labelView.getLayoutParams();
          layoutParams.height=FlowLayout.LayoutParams.WRAP_CONTENT;
          layoutParams.width=FlowLayout.LayoutParams.WRAP_CONTENT;
          layoutParams.setMargins(margin,margin,margin,margin);
          labelView.setLayoutParams(layoutParams);
        }
      }
    }
 else {
      labelsLayout.setVisibility(View.GONE);
    }
    if (textMilestone != null) {
      Milestone milestone=issue.milestone;
      if (milestone != null) {
        textMilestone.setCompoundDrawables(new IconicsDrawable(getContext(),Octicons.Icon.oct_milestone).actionBar().paddingDp(8).colorRes(getColorIcons()),null,null,null);
        textMilestone.setText(milestone.title);
        textMilestone.setVisibility(View.VISIBLE);
      }
 else {
        textMilestone.setVisibility(View.GONE);
      }
    }
    if (textAssignee != null) {
      final User assignee=issue.assignee;
      if (assignee != null) {
        textAssignee.setCompoundDrawables(new IconicsDrawable(getContext(),Octicons.Icon.oct_person).actionBar().colorRes(getColorIcons()).paddingDp(8),null,null,null);
        textAssignee.setText(assignee.login);
        textMilestone.setVisibility(View.VISIBLE);
        textAssignee.setOnClickListener(new OnClickListener(){
          @Override public void onClick(          View v){
            Intent launcherIntent=ProfileActivity.createLauncherIntent(v.getContext(),assignee);
            v.getContext().startActivity(launcherIntent);
          }
        }
);
      }
 else {
        textAssignee.setVisibility(View.GONE);
      }
    }
    if (textRepository != null) {
      final Repo repo=issue.repository;
      if (repo != null) {
        textRepository.setCompoundDrawables(new IconicsDrawable(getContext(),Octicons.Icon.oct_repo).actionBar().colorRes(getColorIcons()).paddingDp(8),null,null,null);
        textRepository.setText(repo.full_name);
        textRepository.setVisibility(View.VISIBLE);
        textRepository.setOnClickListener(new OnClickListener(){
          @Override public void onClick(          View v){
            RepoInfo repoInfo=new RepoInfo();
            repoInfo.owner=repo.owner.login;
            repoInfo.name=repo.name;
            Intent launcherIntent=RepoDetailActivity.createLauncherIntent(v.getContext(),repoInfo);
            v.getContext().startActivity(launcherIntent);
          }
        }
);
      }
 else {
        textRepository.setVisibility(View.GONE);
      }
    }
  }
  StoreCredentials credentials=new StoreCredentials(getContext());
  if (repoInfo.permissions != null && repoInfo.permissions.push || issue.user.login.equals(credentials.getUserName())) {
    OnClickListener editClickListener=new OnClickListener(){
      @Override public void onClick(      View v){
        if (issueDetailRequestListener != null) {
          if (v.getId() == R.id.textTitle) {
            issueDetailRequestListener.onTitleEditRequest();
          }
 else           if (v.getId() == R.id.textBody) {
            issueDetailRequestListener.onContentEditRequest();
          }
        }
      }
    }
;
    title.setOnClickListener(editClickListener);
    body.setOnClickListener(editClickListener);
  }
}

Fixed version (ground truth):
public void setIssue(RepoInfo repoInfo,final Issue issue){
  if (this.issue == null) {
    this.issue=issue;
    title.setText(issue.title);
    if (issue.user != null) {
      profileName.setText(issue.user.login);
      profileEmail.setText(TimeUtils.getTimeAgoString(issue.created_at));
      ImageLoader instance=ImageLoader.getInstance();
      instance.displayImage(issue.user.avatar_url,profileIcon);
      OnClickListener issueUserClick=new OnClickListener(){
        @Override public void onClick(        View v){
          Intent launcherIntent=ProfileActivity.createLauncherIntent(v.getContext(),issue.user);
          v.getContext().startActivity(launcherIntent);
        }
      }
;
      profileName.setOnClickListener(issueUserClick);
      profileEmail.setOnClickListener(issueUserClick);
      profileIcon.setOnClickListener(issueUserClick);
    }
    if (!TextUtils.isEmpty(issue.body_html)) {
      String htmlCode=HtmlUtils.format(issue.body_html).toString();
      HttpImageGetter imageGetter=new HttpImageGetter(getContext());
      imageGetter.repoInfo(repoInfo);
      imageGetter.bind(body,htmlCode,issue.number);
      body.setMovementMethod(UiUtils.CHECKING_LINK_METHOD);
    }
 else {
      body.setText(Html.fromHtml("String_Node_Str" + getResources().getString(R.string.no_description_provided) + "String_Node_Str"));
      body.setTextColor(getResources().getColor(R.color.gray_github_medium));
    }
    if (issue.labels != null && issue.labels.size() > 0) {
      labelsLayout.setVisibility(View.VISIBLE);
      int margin=getResources().getDimensionPixelOffset(R.dimen.gapSmall);
      for (      Label label : issue.labels) {
        LabelView labelView=new LabelView(getContext());
        labelView.setLabel(label);
        labelsLayout.addView(labelView);
        if (labelView.getLayoutParams() != null && labelView.getLayoutParams() instanceof FlowLayout.LayoutParams) {
          FlowLayout.LayoutParams layoutParams=(FlowLayout.LayoutParams)labelView.getLayoutParams();
          layoutParams.height=FlowLayout.LayoutParams.WRAP_CONTENT;
          layoutParams.width=FlowLayout.LayoutParams.WRAP_CONTENT;
          layoutParams.setMargins(margin,margin,margin,margin);
          labelView.setLayoutParams(layoutParams);
        }
      }
    }
 else {
      labelsLayout.setVisibility(View.GONE);
    }
    if (textMilestone != null) {
      Milestone milestone=issue.milestone;
      if (milestone != null) {
        textMilestone.setCompoundDrawables(getIcon(Octicons.Icon.oct_milestone),null,null,null);
        textMilestone.setText(milestone.title);
        textMilestone.setVisibility(View.VISIBLE);
      }
 else {
        textMilestone.setVisibility(View.GONE);
      }
    }
    if (textAssignee != null) {
      final User assignee=issue.assignee;
      if (assignee != null) {
        textAssignee.setCompoundDrawables(getIcon(Octicons.Icon.oct_person),null,null,null);
        textAssignee.setText(assignee.login);
        textMilestone.setVisibility(View.VISIBLE);
        textAssignee.setOnClickListener(new OnClickListener(){
          @Override public void onClick(          View v){
            Intent launcherIntent=ProfileActivity.createLauncherIntent(v.getContext(),assignee);
            v.getContext().startActivity(launcherIntent);
          }
        }
);
      }
 else {
        textAssignee.setVisibility(View.GONE);
      }
    }
    if (textRepository != null) {
      final Repo repo=issue.repository;
      if (repo != null) {
        textRepository.setCompoundDrawables(getIcon(Octicons.Icon.oct_repo),null,null,null);
        textRepository.setText(repo.full_name);
        textRepository.setVisibility(View.VISIBLE);
        textRepository.setOnClickListener(new OnClickListener(){
          @Override public void onClick(          View v){
            RepoInfo repoInfo=new RepoInfo();
            repoInfo.owner=repo.owner.login;
            repoInfo.name=repo.name;
            Intent launcherIntent=RepoDetailActivity.createLauncherIntent(v.getContext(),repoInfo);
            v.getContext().startActivity(launcherIntent);
          }
        }
);
      }
 else {
        textRepository.setVisibility(View.GONE);
      }
    }
  }
  StoreCredentials credentials=new StoreCredentials(getContext());
  if (repoInfo.permissions != null && repoInfo.permissions.push || issue.user.login.equals(credentials.getUserName())) {
    OnClickListener editClickListener=new OnClickListener(){
      @Override public void onClick(      View v){
        if (issueDetailRequestListener != null) {
          if (v.getId() == R.id.textTitle) {
            issueDetailRequestListener.onTitleEditRequest();
          }
 else           if (v.getId() == R.id.textBody) {
            issueDetailRequestListener.onContentEditRequest();
          }
        }
      }
    }
;
    title.setOnClickListener(editClickListener);
    body.setOnClickListener(editClickListener);
  }
}