mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 13:17:41 +00:00
GUACAMOLE-641: Consider null token mapping (blank YAML) to be empty.
This commit is contained in:
@@ -97,7 +97,13 @@ public abstract class VaultConfigurationService {
|
||||
|
||||
// Deserialize token mapping from YAML
|
||||
try {
|
||||
return mapper.readValue(confFile, new TypeReference<Map<String, String>>() {});
|
||||
|
||||
Map<String, String> mapping = mapper.readValue(confFile, new TypeReference<Map<String, String>>() {});
|
||||
if (mapping == null)
|
||||
return Collections.emptyMap();
|
||||
|
||||
return mapping;
|
||||
|
||||
}
|
||||
|
||||
// Fail if YAML is invalid/unreadable
|
||||
|
Reference in New Issue
Block a user