mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-08 09:17:36 +01:00
Fixed null pointer exception in config.getMapList().
By: Kevin <kingersoll@gmail.com>
This commit is contained in:
parent
38c5de3e6e
commit
93e9f175c4
@ -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…
Reference in New Issue
Block a user