[#1191] Stop getPermissions from creating blank groups.

This commit is contained in:
md_5 2014-09-25 10:21:15 +10:00
parent 5ec36efb52
commit 3cd4f169bd

View File

@ -246,6 +246,7 @@ public class YamlConfig implements ConfigurationAdapter
@SuppressWarnings("unchecked")
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;
}
}