-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
[Bug]: ResilienceProperties works incorrectly when the value requested by a key is null #2299
Labels
Comments
iliar-turdushev
added a commit
to iliar-turdushev/Polly
that referenced
this issue
Sep 20, 2024
Adds logic handling a case when the value being requested is null
I've opened a PR #2300 to fix this issue. Could you, please, review it? Thank you. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
Methods
TryGetValue
andGetValue
work incorrectly when the requested value is null. Specifically,TryGetValue
returnsfalse
meaning it cannot find the key, andGetValue
returns a value specified as a default value if the key was not found:Expected behavior
ResilienceProperties
must return correct results even if a value being requested is null, in particular:Actual behavior
No response
Steps to reproduce
No response
Exception(s) (if any)
No response
Polly version
8.4.1
.NET Version
net6.0 net8.0
Anything else?
No response
The text was updated successfully, but these errors were encountered: