Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Return null instead of throwing exception when querystring parameter is missing #5266

Closed
wants to merge 1 commit into from

Conversation

paulrutter
Copy link

@paulrutter paulrutter commented Feb 21, 2023

See #5260

  • Instead of throwing IllegalArgumentException when querystring parameter value is null (e.g. not present), just return null.
  • Throwing exceptions is expensive, especially when it's done for every querystring parameter that has no @DefaultValue (and is not present in the request querystring)

I'm still looking for a good place to add a unit test. Would ParamConverterInternalTest be it?

- Instead of throwing IllegalArgumentException when value is null, just return null.
- Throwing exceptions is expensive, especially when it's done for every querystring parameter that has no `@DefaultValue` (and is not present in the request querystring)
@paulrutter
Copy link
Author

I'm working with legal to get the eca signed.

@paulrutter paulrutter closed this May 11, 2023
@paulrutter
Copy link
Author

Closed in favor of #5326.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants