From 3cd4f169bd31dd1e6bf6ab850fc70e243e859ba4 Mon Sep 17 00:00:00 2001 From: md_5 Date: Thu, 25 Sep 2014 10:21:15 +1000 Subject: [PATCH] [#1191] Stop getPermissions from creating blank groups. --- proxy/src/main/java/net/md_5/bungee/conf/YamlConfig.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/proxy/src/main/java/net/md_5/bungee/conf/YamlConfig.java b/proxy/src/main/java/net/md_5/bungee/conf/YamlConfig.java index 0b3ffb9c..283cf395 100644 --- a/proxy/src/main/java/net/md_5/bungee/conf/YamlConfig.java +++ b/proxy/src/main/java/net/md_5/bungee/conf/YamlConfig.java @@ -246,6 +246,7 @@ public class YamlConfig implements ConfigurationAdapter @SuppressWarnings("unchecked") public Collection getPermissions(String group) { - return get( "permissions." + group, Collections.EMPTY_LIST ); + Collection permissions = get( "permissions." + group, null ); + return ( permissions == null ) ? Collections.EMPTY_SET : permissions; } }