-
Notifications
You must be signed in to change notification settings - Fork 5.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
Fix NPE when nameAttributeValue is null (#15338) #15407
Fix NPE when nameAttributeValue is null (#15338) #15407
Conversation
@HyoJongPark Please sign the Contributor License Agreement! Click here to manually synchronize the status of this Pull Request. See the FAQ for frequently asked questions. |
@HyoJongPark Thank you for signing the Contributor License Agreement! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! I've left some feedback inline.
Also, when you are ready, will you please squash your commits so that there is only one? Please format that final commit like so:
Check for null Name Attribute Value
Closes gh-15338
...uth2-core/src/main/java/org/springframework/security/oauth2/core/user/DefaultOAuth2User.java
Outdated
Show resolved
Hide resolved
b2a7040
to
d991019
Compare
All review has been resolved and reformat commit.! |
Thanks, @HyoJongPark! This is now merged into |
This commit resolves NPEs that occur in DefaultOuth2User#getName.
If the attributes have a key, but the value comes in null, the NPE occurs, and we modified the case and added a related test case.
fixes: #15338