[#1191] Stop getPermissions from creating blank groups.
This commit is contained in:
parent
5ec36efb52
commit
3cd4f169bd
@ -246,6 +246,7 @@ public class YamlConfig implements ConfigurationAdapter
|
|||||||
@SuppressWarnings("unchecked")
|
@SuppressWarnings("unchecked")
|
||||||
public Collection<String> getPermissions(String group)
|
public Collection<String> getPermissions(String group)
|
||||||
{
|
{
|
||||||
return get( "permissions." + group, Collections.EMPTY_LIST );
|
Collection<String> permissions = get( "permissions." + group, null );
|
||||||
|
return ( permissions == null ) ? Collections.EMPTY_SET : permissions;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user