mirror of
https://hub.spigotmc.org/stash/scm/spigot/bukkit.git
synced 2025-08-31 22:22:49 +00:00
Fixed null pointer exception in config.getMapList().
This commit is contained in:
parent
0b50669c8b
commit
a3038f4615
1 changed files with 4 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue