Program: 174807
Project: 174807
Buggy source:
@Override protected void onCreate(Bundle savedInstanceState){
  super.onCreate(savedInstanceState);
  setContentView(R.layout.activity_signup);
  mAuthApi=initAdapter();
  btnSignIn=(Button)findViewById(R.id.sign_in_button);
  btnSignUp=(Button)findViewById(R.id.sign_up_button);
  inputUsername=(EditText)findViewById(R.id.username);
  inputEmail=(EditText)findViewById(R.id.email);
  inputPassword=(EditText)findViewById(R.id.password);
  btnResetPassword=(Button)findViewById(R.id.btn_reset_password);
  btnResetPassword.setOnClickListener(new View.OnClickListener(){
    @Override public void onClick(    View v){
      startActivity(new Intent(SignupActivity.this,ResetPasswordActivity.class));
    }
  }
);
  btnSignIn.setOnClickListener(new View.OnClickListener(){
    @Override public void onClick(    View v){
      finish();
    }
  }
);
  btnSignUp.setOnClickListener(new View.OnClickListener(){
    @Override public void onClick(    View v){
      String username=inputUsername.getText().toString().trim();
      String email=inputEmail.getText().toString().trim();
      String password=inputPassword.getText().toString().trim();
      if (mNonceId == null) {
        getNonceId("String_Node_Str","String_Node_Str");
      }
      if (TextUtils.isEmpty(username)) {
        inputUsername.setError("String_Node_Str");
      }
      if (TextUtils.isEmpty(email)) {
        inputEmail.setError("String_Node_Str");
        return;
      }
      if (TextUtils.isEmpty(password)) {
        inputPassword.setError("String_Node_Str");
        return;
      }
      if (password.length() < 6) {
        inputPassword.setError("String_Node_Str");
        return;
      }
      registerUser(username,email,password);
    }
  }
);
}

Fixed version (ground truth):
@Override protected void onCreate(Bundle savedInstanceState){
  super.onCreate(savedInstanceState);
  setContentView(R.layout.activity_signup);
  mAuthApi=initAdapter();
  btnSignIn=(Button)findViewById(R.id.sign_in_button);
  btnSignUp=(Button)findViewById(R.id.sign_up_button);
  inputUsername=(EditText)findViewById(R.id.username);
  inputEmail=(EditText)findViewById(R.id.email);
  inputPassword=(EditText)findViewById(R.id.password);
  btnResetPassword=(Button)findViewById(R.id.btn_reset_password);
  btnResetPassword.setOnClickListener(new View.OnClickListener(){
    @Override public void onClick(    View v){
      startActivity(new Intent(SignupActivity.this,ResetPasswordActivity.class));
    }
  }
);
  btnSignIn.setOnClickListener(new View.OnClickListener(){
    @Override public void onClick(    View v){
      finish();
    }
  }
);
  btnSignUp.setOnClickListener(new View.OnClickListener(){
    @Override public void onClick(    View v){
      String username=inputUsername.getText().toString().trim();
      String email=inputEmail.getText().toString().trim();
      String password=inputPassword.getText().toString().trim();
      if (TextUtils.isEmpty(username)) {
        inputUsername.setError("String_Node_Str");
      }
      if (TextUtils.isEmpty(email)) {
        inputEmail.setError("String_Node_Str");
        return;
      }
      if (TextUtils.isEmpty(password)) {
        inputPassword.setError("String_Node_Str");
        return;
      }
      if (password.length() < 6) {
        inputPassword.setError("String_Node_Str");
        return;
      }
      registerUser(username,email,password);
    }
  }
);
}