mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-17 21:33:49 -07:00
Fixed null pointer exception in config.getMapList().
By: Kevin <kingersoll@gmail.com>
This commit is contained in:
@@ -785,6 +785,10 @@ public class MemorySection implements ConfigurationSection {
|
|||||||
List<?> list = getList(path);
|
List<?> list = getList(path);
|
||||||
List<Map<?, ?>> result = new ArrayList<Map<?, ?>>();
|
List<Map<?, ?>> result = new ArrayList<Map<?, ?>>();
|
||||||
|
|
||||||
|
if (list == null) {
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
for (Object object : list) {
|
for (Object object : list) {
|
||||||
if (object instanceof Map) {
|
if (object instanceof Map) {
|
||||||
result.add((Map<?, ?>) object);
|
result.add((Map<?, ?>) object);
|
||||||
|
Reference in New Issue
Block a user