Program: 163132
Project: 163132
Buggy source:
@Override protected void onCreate(Bundle savedInstanceState){
  super.onCreate(savedInstanceState);
  setContentView(R.layout.activity_content_editor);
  setTitle("String_Node_Str");
  if (getIntent().getExtras() != null) {
    findViews();
    toolbarExtra.inflateMenu(R.menu.content_editor_extra);
    toolbarExtra.setOnMenuItemClickListener(this);
    final String hint=getIntent().getExtras().getString(HINT);
    if (!TextUtils.isEmpty(hint)) {
      editText.setHint(hint);
    }
    editText.setHint(getString(R.string.edit_hint));
    editText.setQueryTokenReceiver(this);
    String content=getIntent().getExtras().getString(PREFILL);
    if (getIntent().getExtras().containsKey(REPO_INFO) && getIntent().getExtras().containsKey(ISSUE_NUM)) {
      RepoInfo repoInfo=getIntent().getExtras().getParcelable(REPO_INFO);
      int issueNumber=getIntent().getExtras().getInt(ISSUE_NUM);
      issueInfo=new IssueInfo();
      issueInfo.repoInfo=repoInfo;
      issueInfo.num=issueNumber;
      if (!TextUtils.isEmpty(content)) {
        editText.setText(HtmlUtils.format(content));
      }
    }
    allowEmpty=getIntent().getExtras().getBoolean(ALLOW_EMPTY,false);
    if (!allowEmpty) {
      editText.addTextChangedListener(new TextWatcher(){
        @Override public void beforeTextChanged(        CharSequence s,        int start,        int count,        int after){
        }
        @Override public void onTextChanged(        CharSequence s,        int start,        int before,        int count){
          invalidateOptionsMenu();
        }
        @Override public void afterTextChanged(        Editable s){
        }
      }
);
    }
    editText.addTextChangedListener(new TextWatcher(){
      @Override public void beforeTextChanged(      CharSequence s,      int start,      int count,      int after){
      }
      @Override public void onTextChanged(      CharSequence s,      int start,      int before,      int count){
        if (hint != null) {
          if (editText.getText().length() > 0) {
            setTitle(hint);
          }
        }
      }
      @Override public void afterTextChanged(      Editable s){
      }
    }
);
    backIsOk=getIntent().getExtras().getBoolean(BACK_IS_OK,false);
  }
 else {
    finish();
  }
}

Fixed version (ground truth):
@Override protected void onCreate(Bundle savedInstanceState){
  super.onCreate(savedInstanceState);
  setContentView(R.layout.activity_content_editor);
  setTitle("String_Node_Str");
  if (getIntent().getExtras() != null) {
    findViews();
    toolbarExtra.inflateMenu(R.menu.content_editor_extra);
    toolbarExtra.setOnMenuItemClickListener(this);
    final String hint=getIntent().getExtras().getString(HINT);
    if (!TextUtils.isEmpty(hint)) {
      editText.setHint(hint);
    }
    editText.setHint(getString(R.string.edit_hint));
    editText.setQueryTokenReceiver(this);
    String content=getIntent().getExtras().getString(PREFILL);
    if (getIntent().getExtras().containsKey(REPO_INFO) && getIntent().getExtras().containsKey(ISSUE_NUM)) {
      RepoInfo repoInfo=getIntent().getExtras().getParcelable(REPO_INFO);
      int issueNumber=getIntent().getExtras().getInt(ISSUE_NUM);
      issueInfo=new IssueInfo();
      issueInfo.repoInfo=repoInfo;
      issueInfo.num=issueNumber;
      if (!TextUtils.isEmpty(content)) {
        editText.setText(Html.fromHtml(HtmlUtils.format(content).toString()));
      }
    }
    allowEmpty=getIntent().getExtras().getBoolean(ALLOW_EMPTY,false);
    if (!allowEmpty) {
      editText.addTextChangedListener(new TextWatcher(){
        @Override public void beforeTextChanged(        CharSequence s,        int start,        int count,        int after){
        }
        @Override public void onTextChanged(        CharSequence s,        int start,        int before,        int count){
          invalidateOptionsMenu();
        }
        @Override public void afterTextChanged(        Editable s){
        }
      }
);
    }
    editText.addTextChangedListener(new TextWatcher(){
      @Override public void beforeTextChanged(      CharSequence s,      int start,      int count,      int after){
      }
      @Override public void onTextChanged(      CharSequence s,      int start,      int before,      int count){
        if (hint != null) {
          if (editText.getText().length() > 0) {
            setTitle(hint);
          }
        }
      }
      @Override public void afterTextChanged(      Editable s){
      }
    }
);
    backIsOk=getIntent().getExtras().getBoolean(BACK_IS_OK,false);
  }
 else {
    finish();
  }
}