-
Notifications
You must be signed in to change notification settings - Fork 6k
Add null checks to constructors #6892
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
Comments
Hi @jzheaux, is this issue open for contribution? If so, I would like to try working on this since I'm interested in learning more about this project. |
Yes, @clementkng, it certainly is. Thanks for your interest! The ticket is yours. |
@jzheaux is there a list of which class constructors and values should be verified as containing non-null values? |
Thanks for the question, @dfcoffin:
|
@jzheaux the integration test seems to be failing for me locally even though I am running |
What is the error you're seeing? Note that |
RequestKey, JaasGrantedAuthority, and SwitchUserGrantedAuthority assume certain final members are non-null. Issue: spring-projectsgh-6892
RequestKey, JaasGrantedAuthority, and SwitchUserGrantedAuthority assume certain final members are non-null. Issue: gh-6892
Fixed via e66369f |
Related to #6542
RequestKey
,JaasGrantedAuthority
, andSwitchUserGrantedAuthority
each anticipate certainfinal
members will be non-null without requiring such in the constructor.For example,
RequestKey
does the following inequals
:Where
url
is a member variable. But, the constructor does nothing to ensure this behavior will actually work:For
RequestKey
, we should change the constructor to something like:And we'd do similar things for the other two classes.
The text was updated successfully, but these errors were encountered: