GUAC-1115: Treat empty lists as blank.

This commit is contained in:
Michael Jumper
2015-10-20 15:21:47 -07:00
parent cbfcd8b1e4
commit 1c7794b870
2 changed files with 5 additions and 3 deletions

View File

@@ -95,8 +95,6 @@ public class AuthenticationProviderService {
// Pull username attributes from properties
List<String> usernameAttributes = confService.getUsernameAttributes();
if (usernameAttributes.isEmpty())
return null;
// We need exactly one base DN to derive the user DN
if (usernameAttributes.size() != 1)

View File

@@ -56,7 +56,11 @@ public abstract class StringListProperty implements GuacamoleProperty<List<Strin
return null;
// Split string into a list of individual values
return Arrays.asList(DELIMITER_PATTERN.split(values));
List<String> stringValues = Arrays.asList(DELIMITER_PATTERN.split(values));
if (stringValues.isEmpty())
return null;
return stringValues;
}