Program: 142310
Project: 142310
Buggy source:
private void processAndSend(FormRecord[] records,final boolean syncAfterwards){
  SharedPreferences settings=CommCareApplication._().getCurrentApp().getAppPreferences();
  int sendTaskId=syncAfterwards ? ProcessAndSendTask.SEND_PHASE_ID : -1;
  ProcessAndSendTask<CommCareHomeActivity> mProcess=new ProcessAndSendTask<CommCareHomeActivity>(this,platform,settings.getString("String_Node_Str",this.getString(R.string.PostURL)),sendTaskId){
    @Override protected void deliverResult(    CommCareHomeActivity receiver,    Integer result){
      if (result == ProcessAndSendTask.PROGRESS_LOGGED_OUT) {
        returnToLogin(Localization.get("String_Node_Str"));
        return;
      }
      try {
        receiver.refreshView();
      }
 catch (      SessionUnavailableException sue) {
        receiver.returnToLogin(Localization.get("String_Node_Str"));
      }
      int successfulSends=this.getSuccesfulSends();
      if (result == ProcessAndSendTask.FULL_SUCCESS) {
        String label=Localization.get("String_Node_Str",new String[]{String.valueOf(successfulSends)});
        if (successfulSends > 1) {
          label=Localization.get("String_Node_Str",new String[]{String.valueOf(successfulSends)});
        }
        receiver.displayMessage(label);
        if (syncAfterwards) {
          syncData(true);
        }
      }
 else       if (result == ProcessAndSendTask.FAILURE) {
      }
 else {
        receiver.displayMessage(Localization.get("String_Node_Str"),true);
      }
    }
    @Override protected void deliverUpdate(    CommCareHomeActivity receiver,    Long... update){
    }
    @Override protected void deliverError(    CommCareHomeActivity receiver,    Exception e){
      receiver.displayMessage(Localization.get("String_Node_Str"),true);
    }
  }
;
  mProcess.setListeners(CommCareApplication._().getSession().startDataSubmissionListener());
  mProcess.connect(this);
  mProcess.execute(records);
}

Fixed version (ground truth):
@SuppressLint("String_Node_Str") private void processAndSend(FormRecord[] records,final boolean syncAfterwards){
  SharedPreferences settings=CommCareApplication._().getCurrentApp().getAppPreferences();
  int sendTaskId=syncAfterwards ? ProcessAndSendTask.SEND_PHASE_ID : -1;
  ProcessAndSendTask<CommCareHomeActivity> mProcess=new ProcessAndSendTask<CommCareHomeActivity>(this,platform,settings.getString("String_Node_Str",this.getString(R.string.PostURL)),sendTaskId){
    @Override protected void deliverResult(    CommCareHomeActivity receiver,    Integer result){
      if (result == ProcessAndSendTask.PROGRESS_LOGGED_OUT) {
        returnToLogin(Localization.get("String_Node_Str"));
        return;
      }
      try {
        receiver.refreshView();
      }
 catch (      SessionUnavailableException sue) {
        receiver.returnToLogin(Localization.get("String_Node_Str"));
      }
      int successfulSends=this.getSuccesfulSends();
      if (result == ProcessAndSendTask.FULL_SUCCESS) {
        String label=Localization.get("String_Node_Str",new String[]{String.valueOf(successfulSends)});
        if (successfulSends > 1) {
          label=Localization.get("String_Node_Str",new String[]{String.valueOf(successfulSends)});
        }
        receiver.displayMessage(label);
        if (syncAfterwards) {
          syncData(true);
        }
      }
 else       if (result == ProcessAndSendTask.FAILURE) {
      }
 else {
        receiver.displayMessage(Localization.get("String_Node_Str"),true);
      }
    }
    @Override protected void deliverUpdate(    CommCareHomeActivity receiver,    Long... update){
    }
    @Override protected void deliverError(    CommCareHomeActivity receiver,    Exception e){
      receiver.displayMessage(Localization.get("String_Node_Str"),true);
    }
  }
;
  mProcess.setListeners(CommCareApplication._().getSession().startDataSubmissionListener());
  mProcess.connect(this);
  if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) {
    mProcess.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR,records);
  }
 else {
    mProcess.execute(records);
  }
}