Fixed null pointer exception in config.getMapList().

By: Kevin <kingersoll@gmail.com>
This commit is contained in:
Bukkit/Spigot 2012-02-28 21:20:32 -08:00
parent 38c5de3e6e
commit 93e9f175c4

View File

@ -785,6 +785,10 @@ public class MemorySection implements ConfigurationSection {
List<?> list = getList(path);
List<Map<?, ?>> result = new ArrayList<Map<?, ?>>();
if (list == null) {
return result;
}
for (Object object : list) {
if (object instanceof Map) {
result.add((Map<?, ?>) object);