Program: 117044
Project: 117044
Buggy source:
@Override protected void onActivityResult(int requestCode,int resultCode,Intent data){
  if (data != null && data.getBooleanExtra("String_Node_Str",false))   finish();
  if (requestCode == REQUEST_WEBFORM && resultCode == RESULT_OK) {
    String url=data.getStringExtra("String_Node_Str");
    if (url != null)     globalWebViews.peek().loadUrl(url);
 else {
      globalWebViews.peek().setCheckLoginSignup(false);
      globalWebViews.peek().loadUrl(AppConfig.getInstance(this).initialUrl);
    }
    updateMenu(data.getBooleanExtra("String_Node_Str",false));
  }
  if (requestCode == REQUEST_WEB_ACTIVITY && resultCode == RESULT_OK) {
    String url=data.getStringExtra("String_Node_Str");
    if (url != null) {
      int urlLevel=data.getIntExtra("String_Node_Str",-1);
      if (urlLevel == -1 || parentUrlLevel == -1 || urlLevel > parentUrlLevel) {
        loadUrl(url);
      }
 else {
        setResult(RESULT_OK,data);
        finish();
      }
    }
  }
  if (requestCode == REQUEST_SELECT_PICTURE) {
    if (null == mUploadMessage)     return;
    if (resultCode == RESULT_OK) {
      boolean isCamera;
      if (data == null)       isCamera=true;
 else {
        final String action=data.getAction();
        if (action == null)         isCamera=false;
 else         isCamera=action.equals(android.provider.MediaStore.ACTION_IMAGE_CAPTURE);
      }
      Uri selectedImageUri;
      if (isCamera)       selectedImageUri=cameraFileUri;
 else       selectedImageUri=data == null ? null : data.getData();
      try {
        Intent cropIntent=new Intent("String_Node_Str");
        cropIntent.setDataAndType(selectedImageUri,"String_Node_Str");
        cropIntent.putExtra("String_Node_Str",1);
        cropIntent.putExtra("String_Node_Str",1);
        String timeStamp=new SimpleDateFormat("String_Node_Str",Locale.US).format(new Date());
        File outFile=new File(getExternalFilesDir(null),"String_Node_Str" + timeStamp + "String_Node_Str");
        cropFileUri=Uri.fromFile(outFile);
        cropIntent.putExtra(MediaStore.EXTRA_OUTPUT,cropFileUri);
        startActivityForResult(cropIntent,REQUEST_CROP_PICTURE);
        Toast.makeText(getApplicationContext(),getString(R.string.crop_square),Toast.LENGTH_SHORT).show();
      }
 catch (      ActivityNotFoundException e) {
        mUploadMessage.onReceiveValue(selectedImageUri);
        mUploadMessage=null;
      }
    }
 else {
      mUploadMessage.onReceiveValue(null);
      mUploadMessage=null;
    }
  }
  if (requestCode == REQUEST_CROP_PICTURE) {
    if (resultCode == RESULT_OK)     mUploadMessage.onReceiveValue(cropFileUri);
 else     mUploadMessage.onReceiveValue(null);
    mUploadMessage=null;
  }
}

Fixed version (ground truth):
@Override protected void onActivityResult(int requestCode,int resultCode,Intent data){
  if (data != null && data.getBooleanExtra("String_Node_Str",false))   finish();
  if (requestCode == REQUEST_WEBFORM && resultCode == RESULT_OK) {
    String url=data.getStringExtra("String_Node_Str");
    if (url != null)     globalWebViews.peek().loadUrl(url);
 else {
      globalWebViews.peek().setCheckLoginSignup(false);
      globalWebViews.peek().loadUrl(AppConfig.getInstance(this).initialUrl);
    }
    if (AppConfig.getInstance(this).showNavigationMenu) {
      updateMenu(data.getBooleanExtra("String_Node_Str",false));
    }
  }
  if (requestCode == REQUEST_WEB_ACTIVITY && resultCode == RESULT_OK) {
    String url=data.getStringExtra("String_Node_Str");
    if (url != null) {
      int urlLevel=data.getIntExtra("String_Node_Str",-1);
      if (urlLevel == -1 || parentUrlLevel == -1 || urlLevel > parentUrlLevel) {
        loadUrl(url);
      }
 else {
        setResult(RESULT_OK,data);
        finish();
      }
    }
  }
  if (requestCode == REQUEST_SELECT_PICTURE) {
    if (null == mUploadMessage)     return;
    if (resultCode == RESULT_OK) {
      boolean isCamera;
      if (data == null)       isCamera=true;
 else {
        final String action=data.getAction();
        if (action == null)         isCamera=false;
 else         isCamera=action.equals(android.provider.MediaStore.ACTION_IMAGE_CAPTURE);
      }
      Uri selectedImageUri;
      if (isCamera)       selectedImageUri=cameraFileUri;
 else       selectedImageUri=data == null ? null : data.getData();
      try {
        Intent cropIntent=new Intent("String_Node_Str");
        cropIntent.setDataAndType(selectedImageUri,"String_Node_Str");
        cropIntent.putExtra("String_Node_Str",1);
        cropIntent.putExtra("String_Node_Str",1);
        String timeStamp=new SimpleDateFormat("String_Node_Str",Locale.US).format(new Date());
        File outFile=new File(getExternalFilesDir(null),"String_Node_Str" + timeStamp + "String_Node_Str");
        cropFileUri=Uri.fromFile(outFile);
        cropIntent.putExtra(MediaStore.EXTRA_OUTPUT,cropFileUri);
        startActivityForResult(cropIntent,REQUEST_CROP_PICTURE);
        Toast.makeText(getApplicationContext(),getString(R.string.crop_square),Toast.LENGTH_SHORT).show();
      }
 catch (      ActivityNotFoundException e) {
        mUploadMessage.onReceiveValue(selectedImageUri);
        mUploadMessage=null;
      }
    }
 else {
      mUploadMessage.onReceiveValue(null);
      mUploadMessage=null;
    }
  }
  if (requestCode == REQUEST_CROP_PICTURE) {
    if (resultCode == RESULT_OK)     mUploadMessage.onReceiveValue(cropFileUri);
 else     mUploadMessage.onReceiveValue(null);
    mUploadMessage=null;
  }
}