Program: 40714
Project: 40714
Buggy source:
@Override public void onResume(){
  super.onResume();
  mContext=getActivity();
  mSignUpFields=(RelativeLayout)getView().findViewById(R.id.signup_fields);
  mLoginFields=(RelativeLayout)getView().findViewById(R.id.login_fields);
  mCancelButton=(TextView)getView().findViewById(R.id.cancelButton);
  mUsernameField=(EditText)getView().findViewById(R.id.nameField);
  mUsernameField.requestFocus();
  mEmailField=(EditText)getView().findViewById(R.id.emailField);
  mPasswordField=(EditText)getView().findViewById(R.id.passwordField);
  mPasswordField.setTypeface(Typeface.DEFAULT);
  mSignUpButton=(Button)getView().findViewById(R.id.signUpButton);
  mExistingAccount=(TextView)getView().findViewById(R.id.existingAccount);
  mEmailLoginField=(EditText)getView().findViewById(R.id.emailLoginField);
  mEmailLoginField.requestFocus();
  mPasswordLoginField=(EditText)getView().findViewById(R.id.passwordLoginField);
  mPasswordLoginField.setTypeface(Typeface.DEFAULT);
  mLoginButton=(Button)getView().findViewById(R.id.loginButton);
  mNewAccount=(TextView)getView().findViewById(R.id.newAccount);
  mSignUpButton.setOnClickListener(new View.OnClickListener(){
    @Override public void onClick(    View v){
      mUsername=mUsernameField.getText().toString().trim();
      mPassword=mPasswordField.getText().toString().trim();
      mEmail=mEmailField.getText().toString().trim();
      if (mUsername.isEmpty() || mPassword.isEmpty() || mEmail.isEmpty()) {
        requestMethods.showErrorDialog(mContext,mContext.getString(R.string.login_error_title),mContext.getString(R.string.login_error_message));
      }
 else {
        Log.v(TAG,"String_Node_Str");
        createNewUser();
      }
    }
  }
);
  mLoginButton.setOnClickListener(new View.OnClickListener(){
    @Override public void onClick(    View v){
      mLoginEmail=mEmailLoginField.getText().toString().trim();
      mLoginPassword=mPasswordLoginField.getText().toString().trim();
      if (mLoginEmail.isEmpty() || mLoginPassword.isEmpty()) {
        requestMethods.showErrorDialog(mContext,mContext.getString(R.string.login_error_title),mContext.getString(R.string.login_error_message));
      }
 else {
        mCallback.UserLoggedIn("String_Node_Str");
      }
    }
  }
);
  mExistingAccount.setOnClickListener(new View.OnClickListener(){
    @Override public void onClick(    View v){
      mSignUpFields.setVisibility(View.GONE);
      mLoginFields.setVisibility(View.VISIBLE);
    }
  }
);
  mNewAccount.setOnClickListener(new View.OnClickListener(){
    @Override public void onClick(    View v){
      mSignUpFields.setVisibility(View.VISIBLE);
      mLoginFields.setVisibility(View.GONE);
    }
  }
);
  mCancelButton.setOnClickListener(new View.OnClickListener(){
    @Override public void onClick(    View v){
      mCallback.CancelUpload();
    }
  }
);
}

Fixed version (ground truth):
@Override public void onResume(){
  super.onResume();
  mContext=getActivity();
  mSignUpFields=(RelativeLayout)getView().findViewById(R.id.signup_fields);
  mLoginFields=(RelativeLayout)getView().findViewById(R.id.login_fields);
  mCancelButton=(TextView)getView().findViewById(R.id.cancelButton);
  mUsernameField=(EditText)getView().findViewById(R.id.nameField);
  mUsernameField.requestFocus();
  mEmailField=(EditText)getView().findViewById(R.id.emailField);
  mPasswordField=(EditText)getView().findViewById(R.id.passwordField);
  mPasswordField.setTypeface(Typeface.DEFAULT);
  mSignUpButton=(Button)getView().findViewById(R.id.signUpButton);
  mExistingAccount=(TextView)getView().findViewById(R.id.existingAccount);
  mEmailLoginField=(EditText)getView().findViewById(R.id.emailLoginField);
  mEmailLoginField.requestFocus();
  mPasswordLoginField=(EditText)getView().findViewById(R.id.passwordLoginField);
  mPasswordLoginField.setTypeface(Typeface.DEFAULT);
  mLoginButton=(Button)getView().findViewById(R.id.loginButton);
  mNewAccount=(TextView)getView().findViewById(R.id.newAccount);
  mSignUpButton.setOnClickListener(new View.OnClickListener(){
    @Override public void onClick(    View v){
      mUsername=mUsernameField.getText().toString().trim();
      mPassword=mPasswordField.getText().toString().trim();
      mEmail=mEmailField.getText().toString().trim();
      if (mUsername.isEmpty() || mPassword.isEmpty() || mEmail.isEmpty()) {
        requestMethods.showErrorDialog(mContext,mContext.getString(R.string.login_error_title),mContext.getString(R.string.login_error_message));
      }
 else {
        createNewUser();
      }
    }
  }
);
  mLoginButton.setOnClickListener(new View.OnClickListener(){
    @Override public void onClick(    View v){
      mLoginEmail=mEmailLoginField.getText().toString().trim();
      mLoginPassword=mPasswordLoginField.getText().toString().trim();
      if (mLoginEmail.isEmpty() || mLoginPassword.isEmpty()) {
        requestMethods.showErrorDialog(mContext,mContext.getString(R.string.login_error_title),mContext.getString(R.string.login_error_message));
      }
 else {
        mCallback.UserLoggedIn("String_Node_Str");
      }
    }
  }
);
  mExistingAccount.setOnClickListener(new View.OnClickListener(){
    @Override public void onClick(    View v){
      mSignUpFields.setVisibility(View.GONE);
      mLoginFields.setVisibility(View.VISIBLE);
    }
  }
);
  mNewAccount.setOnClickListener(new View.OnClickListener(){
    @Override public void onClick(    View v){
      mSignUpFields.setVisibility(View.VISIBLE);
      mLoginFields.setVisibility(View.GONE);
    }
  }
);
  mCancelButton.setOnClickListener(new View.OnClickListener(){
    @Override public void onClick(    View v){
      mCallback.CancelUpload();
    }
  }
);
}