Program: 117028
Project: 117028
Buggy source:
public void submit(){
  try {
    if (validateForm()) {
      for (int i=0; i < fields.size(); i++) {
        JSONObject field=fields.get(i);
        String type=field.getString("String_Node_Str");
        if (type.equals("String_Node_Str") || type.equals("String_Node_Str") || type.equals("String_Node_Str")|| type.equals("String_Node_Str")|| type.equals("String_Node_Str")) {
          EditText textField=(EditText)mFieldRefs.get(i);
          runJavascript(String.format("String_Node_Str",LeanUtils.jsWrapString(field.getString("String_Node_Str")),LeanUtils.jsWrapString(textField.getText().toString())));
          String selector2=AppConfig.optString(field,"String_Node_Str");
          if (selector2 != null) {
            runJavascript(String.format("String_Node_Str",LeanUtils.jsWrapString(selector2),LeanUtils.jsWrapString(textField.getText().toString())));
          }
        }
        if ((type.equals("String_Node_Str") || type.equals("String_Node_Str")) && field.getBoolean("String_Node_Str")) {
          RadioGroup rg=(RadioGroup)mFieldRefs.get(i);
          for (int j=0; j < rg.getChildCount(); j++) {
            RadioButton rb=(RadioButton)rg.getChildAt(j);
            if (rb.isChecked()) {
              runJavascript(String.format("String_Node_Str",LeanUtils.jsWrapString(field.getString("String_Node_Str"))));
            }
          }
        }
      }
      InputMethodManager imm=(InputMethodManager)getSystemService(INPUT_METHOD_SERVICE);
      imm.hideSoftInputFromWindow(mLoginFormView.getWindowToken(),0);
      String submitButtonSelector=AppConfig.optString(mJson,"String_Node_Str");
      if (submitButtonSelector != null && submitButtonSelector.length() > 0) {
        runJavascript(String.format("String_Node_Str",LeanUtils.jsWrapString(submitButtonSelector)));
      }
 else {
        runJavascript(String.format("String_Node_Str",LeanUtils.jsWrapString(mJson.getString("String_Node_Str"))));
      }
      mSubmitted=true;
      mSubmitButton.setEnabled(false);
      if (mJson.optBoolean("String_Node_Str",false)) {
        scheduleSubmissionCheck();
      }
    }
  }
 catch (  Exception e) {
    Log.e(TAG,e.toString(),e);
  }
}

Fixed version (ground truth):
public void submit(){
  try {
    if (validateForm()) {
      for (int i=0; i < fields.size(); i++) {
        JSONObject field=fields.get(i);
        String type=field.getString("String_Node_Str");
        if (type.equals("String_Node_Str") || type.equals("String_Node_Str") || type.equals("String_Node_Str")|| type.equals("String_Node_Str")|| type.equals("String_Node_Str")) {
          EditText textField=(EditText)mFieldRefs.get(i);
          runJavascript(String.format("String_Node_Str",LeanUtils.jsWrapString(field.getString("String_Node_Str")),LeanUtils.jsWrapString(textField.getText().toString())));
          String selector2=AppConfig.optString(field,"String_Node_Str");
          if (selector2 != null) {
            runJavascript(String.format("String_Node_Str",LeanUtils.jsWrapString(selector2),LeanUtils.jsWrapString(textField.getText().toString())));
          }
        }
        if ((type.equals("String_Node_Str") || type.equals("String_Node_Str")) && field.getBoolean("String_Node_Str")) {
          RadioGroup rg=(RadioGroup)mFieldRefs.get(i);
          for (int j=0; j < rg.getChildCount(); j++) {
            RadioButton rb=(RadioButton)rg.getChildAt(j);
            if (rb.isChecked()) {
              runJavascript(String.format("String_Node_Str",LeanUtils.jsWrapString(field.getString("String_Node_Str"))));
            }
          }
        }
      }
      InputMethodManager imm=(InputMethodManager)getSystemService(INPUT_METHOD_SERVICE);
      imm.hideSoftInputFromWindow(mLoginFormView.getWindowToken(),0);
      String submitButtonSelector=AppConfig.optString(mJson,"String_Node_Str");
      if (submitButtonSelector != null && submitButtonSelector.length() > 0) {
        runJavascript(String.format("String_Node_Str",LeanUtils.jsWrapString(submitButtonSelector)));
      }
 else {
        runJavascript(String.format("String_Node_Str",LeanUtils.jsWrapString(mJson.getString("String_Node_Str"))));
      }
      mSubmitted=true;
      mSubmitButton.setEnabled(false);
      if (mJson.optBoolean("String_Node_Str",false)) {
        scheduleSubmissionCheck();
      }
      LoginManager.getInstance().addObserver(this);
      this.checkLoginStatusHandler=new Handler();
      this.checkLoginStatusHandler.postDelayed(new Runnable(){
        @Override public void run(){
          LoginManager.getInstance().checkLogin();
        }
      }
,5 * 1000);
    }
  }
 catch (  Exception e) {
    Log.e(TAG,e.toString(),e);
  }
}