mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 05:07:41 +00:00
Handle possible NPE in mapping loader.
This commit is contained in:
@@ -100,6 +100,11 @@ public class BasicFileAuthenticationProvider implements AuthenticationProvider {
|
||||
|
||||
}
|
||||
|
||||
// If no mapping available, report as such
|
||||
if (mapping == null)
|
||||
throw new GuacamoleException("User mapping could not be read.");
|
||||
|
||||
// Validate and return info for given user and pass
|
||||
AuthInfo info = mapping.get(username);
|
||||
if (info != null && info.validate(username, password))
|
||||
return info.getConfiguration();
|
||||
|
Reference in New Issue
Block a user