-
Notifications
You must be signed in to change notification settings - Fork 6.1k
Closed
Labels
in: coreAn issue in spring-security-coreAn issue in spring-security-corestatus: backportedAn issue that has been backported to maintenance branchesAn issue that has been backported to maintenance branchestype: enhancementA general enhancementA general enhancement
Milestone
Description
Line 108 in 1de0cf5
return BCrypt.hashpw(rawPassword.toString(), salt); |
BCryptPasswordEncoder.encode()
throws a Null Pointer Exception (NPE) when passing in a null rawPassword
and then rawPassword.toString()
is called inside the method.
This method can and should be made null-safe, either:
- check for null and return null, or
- throw some kind of exception
Metadata
Metadata
Assignees
Labels
in: coreAn issue in spring-security-coreAn issue in spring-security-corestatus: backportedAn issue that has been backported to maintenance branchesAn issue that has been backported to maintenance branchestype: enhancementA general enhancementA general enhancement