-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Added check of RequiresValidationContext before calling IsValid #110647
Added check of RequiresValidationContext before calling IsValid #110647
Conversation
The fix is done to avoid NRE when CompareAttribute's implementation of IsValid(object? value, ValidationContext validationContext) is called with validationContext == null. Fix dotnet#42490
Thank you for submitting the PR. Here are a few points regarding this change:
|
@dotnet-policy-service agree |
@tarekgh Your comments have been addressed, could you please take a look? |
@adamsitnik Hello! Could you please help to find a reviewer of this PR? |
@vvg88 thanks for helping with this change. Sorry for the delay reviewing it. You know this is holiday time and most people are off. |
The fix is done to avoid NRE when CompareAttribute's implementation of IsValid(object? value, ValidationContext validationContext) is called with validationContext == null.
Fix #42490
Found by Linux Verification Center (linuxtesting.org) with SVACE.