Program: 175346
Project: 175346
Buggy source:
protected Result<JSONObject> checkParam(ClientApiRequestParam param){
  if (StringUtils.isBlank(param.getLicenseKey())) {
    return Result.wrapResult(AdminVersionLicenseLang.NOT_FOUND);
  }
{
    if (StringUtils.isEmpty(param.getUuid())) {
      log.error("String_Node_Str");
      return Result.wrapResult(SystemLang.PARAM_WRONG);
    }
    AdminUsers buildUser=adminUsersDao.findByUuid(param.getUuid());
    if (buildUser == null) {
      log.error("String_Node_Str");
      return Result.wrapResult(SystemLang.PARAM_WRONG);
    }
    AdminAuthGroupAccess access=adminAuthGroupAccessDao.findByUidAndGroupId(buildUser.getId(),2L);
    if (access == null) {
      log.error("String_Node_Str");
      return Result.wrapResult(SystemLang.PARAM_WRONG);
    }
  }
  AdminVersionLicense license=adminVersionLicenseDao.findByLicense(param.getLicenseKey());
  if (license == null) {
    return Result.wrapResult(AdminVersionLicenseLang.NOT_FOUND);
  }
  if (license.getStatus() != 1) {
    return Result.wrapResult(AdminVersionLicenseLang.ILLEGAL_STATUS);
  }
  if (DateTime.now().isAfter(license.getExpireTime().getTime())) {
    return Result.wrapResult(AdminVersionLicenseLang.LICENSE_HAD_EXPIRE);
  }
  try {
    PrivateKey privateKey=SerializeUtil.deserialize(Base64.getDecoder().decode(license.getPrivateKey()),PrivateKey.class);
    JSONObject object=JSON.parseObject(RSAUtil.decrypt(Base64.getDecoder().decode(param.getCode()),privateKey),JSONObject.class);
    object.put("String_Node_Str",license);
    return Result.wrapResult(object);
  }
 catch (  Exception e) {
    log.error("String_Node_Str",JSON.toJSONString(param));
  }
  return Result.wrapResult(SystemLang.ERROR);
}

Fixed version (ground truth):
protected Result<JSONObject> checkParam(ClientApiRequestParam param){
  if (StringUtils.isBlank(param.getLicenseKey())) {
    return Result.wrapResult(AdminVersionLicenseLang.NOT_FOUND);
  }
{
    if (StringUtils.isEmpty(param.getUuid())) {
      log.error("String_Node_Str");
      return Result.wrapResult(SystemLang.PARAM_WRONG);
    }
    AdminUsers buildUser=adminUsersDao.findByUuid(param.getUuid());
    if (buildUser == null) {
      log.error("String_Node_Str");
      return Result.wrapResult(SystemLang.PARAM_WRONG);
    }
    AdminAuthGroupAccess access=adminAuthGroupAccessDao.findByUidAndGroupId(buildUser.getId(),2L);
    if (access == null) {
      log.error("String_Node_Str");
      return Result.wrapResult(SystemLang.PARAM_WRONG);
    }
  }
  AdminVersionLicense license=adminVersionLicenseDao.findByLicense(param.getLicenseKey());
  if (license == null) {
    return Result.wrapResult(AdminVersionLicenseLang.NOT_FOUND);
  }
  if (license.getStatus() != 1) {
    return Result.wrapResult(AdminVersionLicenseLang.ILLEGAL_STATUS);
  }
  if (DateTime.now().isAfter(license.getExpireTime().getTime())) {
    return Result.wrapResult(AdminVersionLicenseLang.LICENSE_HAD_EXPIRE);
  }
  try {
    PrivateKey privateKey=SerializeUtil.deserialize(Base64.getDecoder().decode(license.getPrivateKey()),PrivateKey.class);
    JSONObject object=JSON.parseObject(RSAUtil.decrypt(Base64.getDecoder().decode(URLDecoder.decode(param.getCode(),"String_Node_Str")),privateKey),JSONObject.class);
    object.put("String_Node_Str",license);
    return Result.wrapResult(object);
  }
 catch (  Exception e) {
    log.error("String_Node_Str",JSON.toJSONString(param));
  }
  return Result.wrapResult(SystemLang.ERROR);
}