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

null check config.rate and config.defaultRate in currency module #12175

Merged

Conversation

olafbuitelaar
Copy link
Contributor

Type of change

  • Bugfix

Description of change

in cases you call with a null value for rates or defaultRates the currency module accepts these values, causing later the getCurrencyConversion to throw an error as it tries to de-reference the null value.
eg.
pbjs.setConfig({ currency:{ defaultRates:null } })

@olafbuitelaar olafbuitelaar changed the title null check config.rate and config.defaultRate null check config.rate and config.defaultRate in currency module Aug 27, 2024
@jsnellbaker jsnellbaker self-requested a review August 29, 2024 12:17
@jsnellbaker jsnellbaker self-assigned this Aug 29, 2024
@jsnellbaker jsnellbaker merged commit 14b3b35 into prebid:master Aug 29, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants