GUAC-586: Fix potential NullPointerExceptions in basic and LDAP auth.
This commit is contained in:
1 parent
df34b87460
commit
c82f2312b8
2 files changed
+7
-1
No files matched your search
+1
-1
@@ -206,7 +206,7 @@ public class BasicFileAuthenticationProvider extends SimpleAuthenticationProvide
|
||||
return null;
|
||||
|
||||
// Validate and return info for given user and pass
|
||||
Authorization auth = getUserMapping().getAuthorization(credentials.getUsername());
|
||||
Authorization auth = userMapping.getAuthorization(credentials.getUsername());
|
||||
if (auth != null && auth.validate(credentials.getUsername(), credentials.getPassword()))
|
||||
return auth.getConfigurations();
|
||||
|
||||
|
||||
Reference in new issue
Block a user