diff --git a/Core/src/main/java/com/intellectualcrafters/configuration/MemorySection.java b/Core/src/main/java/com/intellectualcrafters/configuration/MemorySection.java index 4b69c9787..5e42c95f6 100644 --- a/Core/src/main/java/com/intellectualcrafters/configuration/MemorySection.java +++ b/Core/src/main/java/com/intellectualcrafters/configuration/MemorySection.java @@ -537,12 +537,16 @@ public class MemorySection implements ConfigurationSection { @Override public List getStringList(String path) { - List list = getList(path); + final List list = getList(path); - List result = new ArrayList<>(); + if (list == null) { + return new ArrayList<>(0); + } - for (Object object : list) { - if ((object instanceof String) || isPrimitiveWrapper(object)) { + final List result = new ArrayList<>(); + + for (final Object object : list) { + if ((object instanceof String) || (isPrimitiveWrapper(object))) { result.add(String.valueOf(object)); } }