-
Notifications
You must be signed in to change notification settings - Fork 6k
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
BCryptPasswordEncoder.encode() throws NPE #8317
Labels
in: core
An issue in spring-security-core
status: backported
An issue that has been backported to maintenance branches
type: enhancement
A general enhancement
Milestone
Comments
@alan-czajkowski We don't want to return null for the encoding, but I'd be open to returning an |
@rwinch I'll submit a PR |
alan-czajkowski
added a commit
to alan-czajkowski/spring-security
that referenced
this issue
Apr 7, 2020
rwinch
pushed a commit
that referenced
this issue
Apr 7, 2020
rwinch
pushed a commit
that referenced
this issue
Apr 7, 2020
rwinch
pushed a commit
that referenced
this issue
Apr 7, 2020
rwinch
pushed a commit
that referenced
this issue
Apr 7, 2020
rwinch
pushed a commit
that referenced
this issue
Apr 7, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
in: core
An issue in spring-security-core
status: backported
An issue that has been backported to maintenance branches
type: enhancement
A general enhancement
spring-security/crypto/src/main/java/org/springframework/security/crypto/bcrypt/BCryptPasswordEncoder.java
Line 108 in 1de0cf5
BCryptPasswordEncoder.encode()
throws a Null Pointer Exception (NPE) when passing in a nullrawPassword
and thenrawPassword.toString()
is called inside the method.This method can and should be made null-safe, either:
The text was updated successfully, but these errors were encountered: