Program: 87092
Project: 87092
Buggy source:
@Override protected void onActivityResult(int requestCode,int resultCode,Intent data){
  if (requestCode == CODE_CREATE_GROUP && resultCode == RESULT_OK) {
    newGroupName=data.getStringExtra("String_Node_Str");
    Toast.makeText(this,"String_Node_Str" + newGroupName + "String_Node_Str",Toast.LENGTH_SHORT).show();
  }
 else   if (requestCode == CODE_SELECT_GROUP) {
    if (resultCode == RESULT_OK) {
      gid=data.getLongExtra("String_Node_Str",0);
      String groupName=data.getStringExtra("String_Node_Str");
      btnSelectGroup.setText(groupName);
      btnSelectGroup.setCompoundDrawablesWithIntrinsicBounds(R.drawable.btn_check_buttonless_on,0,0,0);
    }
 else {
      gid=0;
      btnSelectGroup.setText(R.string.select_group);
      btnSelectGroup.setCompoundDrawablesWithIntrinsicBounds(0,0,0,0);
    }
  }
 else   if (requestCode == CODE_LOCATION) {
    if (resultCode == RESULT_OK) {
      mLocationManager.removeUpdates(listener);
      if (gpsLocation == null)       gpsLocation=new Location(LocationManager.GPS_PROVIDER);
      gpsLocation.setLatitude(data.getDoubleExtra("String_Node_Str",0d));
      gpsLocation.setLongitude(data.getDoubleExtra("String_Node_Str",0d));
      if (gpsLocation.getLatitude() != 0 && gpsLocation.getLongitude() != 0) {
        locationTxt.setText(R.string.share_location_manual);
        locationImg.setImageDrawable(getResources().getDrawable(R.drawable.button_ok));
      }
    }
 else {
      setupGps();
    }
  }
 else   if (requestCode == TAKE_PICTURE && resultCode == Activity.RESULT_OK) {
    fileUri=data.getData();
    rotation=Util.getRotationDegrees(fileUri.getPath());
    imageView.setImageBitmap(Util.decodeSampledBitmapFromFile(fileUri.getPath(),screenWidth,screenWidth,rotation));
    setupGps();
  }
 else   if (resultCode == RESULT_CANCELED) {
    finish();
  }
}

Fixed version (ground truth):
@Override protected void onActivityResult(int requestCode,int resultCode,Intent data){
  if (requestCode == CODE_CREATE_GROUP && resultCode == RESULT_OK) {
    newGroupName=data.getStringExtra("String_Node_Str");
    Toast.makeText(this,"String_Node_Str" + newGroupName + "String_Node_Str",Toast.LENGTH_SHORT).show();
  }
 else   if (requestCode == CODE_SELECT_GROUP) {
    if (resultCode == RESULT_OK) {
      gid=data.getLongExtra("String_Node_Str",0);
      String groupName=data.getStringExtra("String_Node_Str");
      btnSelectGroup.setText(groupName);
      btnSelectGroup.setCompoundDrawablesWithIntrinsicBounds(R.drawable.btn_check_buttonless_on,0,0,0);
    }
 else {
      gid=0;
      btnSelectGroup.setText(R.string.select_group);
      btnSelectGroup.setCompoundDrawablesWithIntrinsicBounds(0,0,0,0);
    }
  }
 else   if (requestCode == CODE_LOCATION) {
    if (resultCode == RESULT_OK) {
      mLocationManager.removeUpdates(listener);
      if (gpsLocation == null)       gpsLocation=new Location(LocationManager.GPS_PROVIDER);
      gpsLocation.setLatitude(data.getDoubleExtra("String_Node_Str",0d));
      gpsLocation.setLongitude(data.getDoubleExtra("String_Node_Str",0d));
      if (gpsLocation.getLatitude() != 0 && gpsLocation.getLongitude() != 0) {
        locationTxt.setText(R.string.share_location_manual);
        locationImg.setImageDrawable(getResources().getDrawable(R.drawable.button_ok));
      }
    }
 else {
      setupGps();
    }
  }
 else   if (requestCode == TAKE_PICTURE) {
    if (resultCode == Activity.RESULT_OK) {
      rotation=Util.getRotationDegrees(fileUri.getPath());
      imageView.setImageBitmap(Util.decodeSampledBitmapFromFile(fileUri.getPath(),screenWidth,screenWidth,rotation));
      setupGps();
    }
 else {
      Toast.makeText(this,"String_Node_Str",Toast.LENGTH_SHORT).show();
      finish();
    }
  }
 else   if (resultCode == RESULT_CANCELED) {
    finish();
  }
}