Program: 46613
Project: 46613
Buggy source:
public void onComplete(final Object rresponse){
  ArrayList<SObject> records=(ArrayList<SObject>)rresponse;
  int index=1;
  String recordType=null;
  String id=null;
  HashMap<String,String> fields=null;
  if (records.size() == 0) {
    final String display="String_Node_Str";
    SforceUpdate.this.runOnUiThread(new Runnable(){
      public void run(){
        mText.setText(display);
      }
    }
);
  }
 else {
    for (    SObject hm : records) {
      recordType=hm.getType();
      id=hm.getId();
      fields=hm.getFields();
      index++;
    }
    Intent intent=new Intent();
    int requestCode=0;
    if (recordType.equals("String_Node_Str")) {
    }
 else     if (recordType.equals("String_Node_Str")) {
      intent.setClass(context,com.sforce.android.sample.SforceUpdateContact.class);
      requestCode=0;
      intent.putExtra("String_Node_Str",recordType);
      intent.putExtra("String_Node_Str",fields.get("String_Node_Str"));
      intent.putExtra("String_Node_Str",fields.get("String_Node_Str"));
      intent.putExtra("String_Node_Str",id);
      startActivityForResult(intent,requestCode);
    }
 else     if (recordType.equals("String_Node_Str")) {
      intent.setClass(context,com.sforce.android.sample.SforceUpdateAccount.class);
      intent.putExtra("String_Node_Str",recordType);
      intent.putExtra("String_Node_Str",fields.get("String_Node_Str"));
      intent.putExtra("String_Node_Str",fields.get("String_Node_Str"));
      intent.putExtra("String_Node_Str",fields.get("String_Node_Str"));
      intent.putExtra("String_Node_Str",id);
      requestCode=1;
      startActivityForResult(intent,requestCode);
    }
  }
}

Fixed version (ground truth):
public void onComplete(final Object rresponse){
  ArrayList<SObject> records=(ArrayList<SObject>)rresponse;
  int index=1;
  String recordType=null;
  String id=null;
  SObject obj=null;
  if (records.size() == 0) {
    final String display="String_Node_Str";
    SforceUpdate.this.runOnUiThread(new Runnable(){
      public void run(){
        mText.setText(display);
      }
    }
);
  }
 else {
    for (    SObject hm : records) {
      recordType=hm.getType();
      id=hm.getId();
      obj=hm;
      index++;
    }
    Intent intent=new Intent();
    int requestCode=0;
    if (recordType.equals("String_Node_Str")) {
    }
 else     if (recordType.equals("String_Node_Str")) {
      intent.setClass(context,com.sforce.android.sample.SforceUpdateContact.class);
      requestCode=0;
      intent.putExtra("String_Node_Str",recordType);
      intent.putExtra("String_Node_Str",obj.getField("String_Node_Str"));
      intent.putExtra("String_Node_Str",obj.getField("String_Node_Str"));
      intent.putExtra("String_Node_Str",id);
      startActivityForResult(intent,requestCode);
    }
 else     if (recordType.equals("String_Node_Str")) {
      intent.setClass(context,com.sforce.android.sample.SforceUpdateAccount.class);
      intent.putExtra("String_Node_Str",recordType);
      intent.putExtra("String_Node_Str",obj.getField("String_Node_Str"));
      intent.putExtra("String_Node_Str",obj.getField("String_Node_Str"));
      intent.putExtra("String_Node_Str",obj.getField("String_Node_Str"));
      intent.putExtra("String_Node_Str",id);
      requestCode=1;
      startActivityForResult(intent,requestCode);
    }
  }
}