Program: 117026
Project: 117026
Buggy source:
@Override protected void onCreate(Bundle savedInstanceState){
  AppConfig appConfig=AppConfig.getInstance(this);
  super.onCreate(savedInstanceState);
  mFormName=getIntent().getStringExtra(EXTRA_FORMNAME);
  if (mFormName.equals("String_Node_Str")) {
    mJson=appConfig.loginConfig;
    mIsLogin=true;
    mForgotPasswordUrl=AppConfig.optString(mJson,"String_Node_Str");
  }
 else   if (mFormName.equals("String_Node_Str")) {
    mJson=appConfig.signupConfig;
  }
 else {
    Log.e(TAG,"String_Node_Str" + mFormName);
  }
  mTitle=getIntent().getStringExtra(EXTRA_TITLE);
  if (mTitle == null)   mTitle=mJson.optString("String_Node_Str",appConfig.appName);
  mFormUrl=AppConfig.optString(mJson,"String_Node_Str");
  mErrorUrl=AppConfig.optString(mJson,"String_Node_Str");
  this.setTitle(mTitle);
  mHiddenWebView=new WebView(this);
  WebSettings webSettings=mHiddenWebView.getSettings();
  webSettings.setJavaScriptEnabled(true);
  webSettings.setSaveFormData(false);
  webSettings.setSavePassword(false);
  webSettings.setUserAgentString(appConfig.userAgent);
  mHiddenWebView.setWebViewClient(new WebFormWebViewClient());
  mHiddenWebView.setWebChromeClient(new WebFormWebChromeClient());
  mHiddenWebView.addJavascriptInterface(new jsBridge(),"String_Node_Str");
  setContentView(R.layout.activity_web_form);
  mLoginFormView=findViewById(R.id.login_form);
  mLoginStatusView=findViewById(R.id.login_status);
  mSubmitButton=(Button)findViewById(R.id.submit_button);
  if (mIsLogin && AppConfig.getInstance(this).loginIsFirstPage) {
    mLoginStatusView.setVisibility(View.VISIBLE);
    mLoginFormView.setVisibility(View.GONE);
    LoginManager.getInstance().addObserver(this);
    LoginManager.getInstance().checkIfNotAlreadyChecking();
  }
  if (getSupportActionBar() != null) {
    if (appConfig.hideTitleInActionBar) {
      getSupportActionBar().setDisplayOptions(0,ActionBar.DISPLAY_SHOW_TITLE);
    }
  }
  processForm(mFormName);
  findViewById(R.id.submit_button).setOnClickListener(new View.OnClickListener(){
    @Override public void onClick(    View view){
      submit();
    }
  }
);
}

Fixed version (ground truth):
@Override protected void onCreate(Bundle savedInstanceState){
  AppConfig appConfig=AppConfig.getInstance(this);
  super.onCreate(savedInstanceState);
  mFormName=getIntent().getStringExtra(EXTRA_FORMNAME);
  if (mFormName.equals("String_Node_Str")) {
    mJson=appConfig.loginConfig;
    mIsLogin=true;
    mForgotPasswordUrl=AppConfig.optString(mJson,"String_Node_Str");
  }
 else   if (mFormName.equals("String_Node_Str")) {
    mJson=appConfig.signupConfig;
  }
 else {
    Log.e(TAG,"String_Node_Str" + mFormName);
  }
  mTitle=getIntent().getStringExtra(EXTRA_TITLE);
  if (mTitle == null)   mTitle=mJson.optString("String_Node_Str",appConfig.appName);
  mFormUrl=AppConfig.optString(mJson,"String_Node_Str");
  mErrorUrl=AppConfig.optString(mJson,"String_Node_Str");
  this.setTitle(mTitle);
  mHiddenWebView=new WebView(this);
  WebSettings webSettings=mHiddenWebView.getSettings();
  webSettings.setJavaScriptEnabled(true);
  webSettings.setSaveFormData(false);
  webSettings.setSavePassword(false);
  webSettings.setUserAgentString(appConfig.userAgent);
  mHiddenWebView.setWebViewClient(new WebFormWebViewClient());
  mHiddenWebView.setWebChromeClient(new WebFormWebChromeClient());
  mHiddenWebView.addJavascriptInterface(new jsBridge(),"String_Node_Str");
  setContentView(R.layout.activity_web_form);
  mLoginFormView=findViewById(R.id.login_form);
  mLoginStatusView=findViewById(R.id.login_status);
  mSubmitButton=(Button)findViewById(R.id.submit_button);
  if (mIsLogin && AppConfig.getInstance(this).loginIsFirstPage) {
    mLoginStatusView.setVisibility(View.VISIBLE);
    mLoginFormView.setVisibility(View.GONE);
    LoginManager.getInstance().addObserver(this);
    LoginManager.getInstance().checkIfNotAlreadyChecking();
  }
 else {
    if (getSupportActionBar() != null) {
      getSupportActionBar().setDisplayHomeAsUpEnabled(true);
    }
  }
  if (getSupportActionBar() != null) {
    if (appConfig.hideTitleInActionBar) {
      getSupportActionBar().setDisplayOptions(0,ActionBar.DISPLAY_SHOW_TITLE);
    }
  }
  processForm(mFormName);
  findViewById(R.id.submit_button).setOnClickListener(new View.OnClickListener(){
    @Override public void onClick(    View view){
      submit();
    }
  }
);
}