-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
spring-projects-issues
added
the
status: waiting-for-triage
An issue we've not yet triaged
label
Apr 2, 2020
@alan-czajkowski We don't want to return null for the encoding, but I'd be open to returning an |
rwinch
added
in: core
An issue in spring-security-core
status: ideal-for-contribution
An issue that we actively are looking for someone to help us with
type: enhancement
A general enhancement
and removed
status: waiting-for-triage
An issue we've not yet triaged
labels
Apr 3, 2020
@rwinch I'll submit a PR |
alan-czajkowski
added a commit
to alan-czajkowski/spring-security
that referenced
this issue
Apr 7, 2020
rwinch
removed
the
status: ideal-for-contribution
An issue that we actively are looking for someone to help us with
label
Apr 7, 2020
rwinch
pushed a commit
that referenced
this issue
Apr 7, 2020
spring-projects-issues
added
the
status: backported
An issue that has been backported to maintenance branches
label
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: