Program: 142374
Project: 142374
Buggy source:
/** 
 * Called when the activity is first created. 
 */
@Override public void onCreate(Bundle savedInstanceState){
  super.onCreate(savedInstanceState);
  currentActivity=this;
  setContentView(R.layout.login);
  login=(Button)findViewById(R.id.login_button);
  userLabel=(TextView)findViewById(R.id.text_username);
  passLabel=(TextView)findViewById(R.id.text_password);
  username=(EditText)findViewById(R.id.edit_username);
  password=(EditText)findViewById(R.id.edit_password);
  checkServer=(CheckBox)findViewById(R.id.checkserver);
  login.setOnClickListener(new OnClickListener(){
    public void onClick(    View arg0){
      if (!checkServer.isChecked() && tryLocalLogin()) {
        return;
      }
      if (false) {
        Toast.makeText(LoginActivity.this,"String_Node_Str",Toast.LENGTH_LONG).show();
        return;
      }
      SharedPreferences prefs=PreferenceManager.getDefaultSharedPreferences(LoginActivity.this);
      String un=username.getText().toString();
      if (prefs.contains("String_Node_Str")) {
        un+="String_Node_Str" + prefs.getString("String_Node_Str",null);
      }
      dataPuller=new DataPullTask(un,password.getText().toString(),prefs.getString("String_Node_Str",LoginActivity.this.getString(R.string.ota_restore_url)),prefs.getString("String_Node_Str",LoginActivity.this.getString(R.string.key_server)),LoginActivity.this);
      dataPuller.setPullListener(LoginActivity.this);
      LoginActivity.this.showDialog(DIALOG_CHECKING_SERVER);
      dataPuller.execute();
    }
  }
);
  TextView versionDisplay=(TextView)findViewById(R.id.str_version);
  versionDisplay.setText(CommCareApplication._().getCurrentVersionString());
}

Fixed version (ground truth):
/** 
 * Called when the activity is first created. 
 */
@Override public void onCreate(Bundle savedInstanceState){
  super.onCreate(savedInstanceState);
  currentActivity=this;
  setContentView(R.layout.login);
  login=(Button)findViewById(R.id.login_button);
  userLabel=(TextView)findViewById(R.id.text_username);
  passLabel=(TextView)findViewById(R.id.text_password);
  username=(EditText)findViewById(R.id.edit_username);
  password=(EditText)findViewById(R.id.edit_password);
  checkServer=(CheckBox)findViewById(R.id.checkserver);
  login.setOnClickListener(new OnClickListener(){
    public void onClick(    View arg0){
      if (!checkServer.isChecked() && tryLocalLogin()) {
        return;
      }
      if (false) {
        Toast.makeText(LoginActivity.this,"String_Node_Str",Toast.LENGTH_LONG).show();
        return;
      }
      SharedPreferences prefs=PreferenceManager.getDefaultSharedPreferences(LoginActivity.this);
      String un=getUsername();
      if (prefs.contains("String_Node_Str")) {
        un+="String_Node_Str" + prefs.getString("String_Node_Str",null);
      }
      dataPuller=new DataPullTask(un,password.getText().toString(),prefs.getString("String_Node_Str",LoginActivity.this.getString(R.string.ota_restore_url)),prefs.getString("String_Node_Str",LoginActivity.this.getString(R.string.key_server)),LoginActivity.this);
      dataPuller.setPullListener(LoginActivity.this);
      LoginActivity.this.showDialog(DIALOG_CHECKING_SERVER);
      dataPuller.execute();
    }
  }
);
  TextView versionDisplay=(TextView)findViewById(R.id.str_version);
  versionDisplay.setText(CommCareApplication._().getCurrentVersionString());
}