From 539d3da8a9e8f85a71f1e003d7b88395f7180656 Mon Sep 17 00:00:00 2001 From: Daniel Saukel Date: Fri, 10 Apr 2020 15:49:56 +0200 Subject: [PATCH] Fix MFD NPE --- .../java/de/erethon/dungeonsxl/dungeon/DungeonConfig.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/src/main/java/de/erethon/dungeonsxl/dungeon/DungeonConfig.java b/core/src/main/java/de/erethon/dungeonsxl/dungeon/DungeonConfig.java index 2ba39893..50f1afe8 100644 --- a/core/src/main/java/de/erethon/dungeonsxl/dungeon/DungeonConfig.java +++ b/core/src/main/java/de/erethon/dungeonsxl/dungeon/DungeonConfig.java @@ -131,10 +131,14 @@ public class DungeonConfig extends DREConfig { ConfigurationSection overrideSection = config.getConfigurationSection("overrideValues"); if (overrideSection != null) { overrideValues = new WorldConfig(plugin, overrideSection); + } else { + overrideValues = new WorldConfig(plugin); } ConfigurationSection defaultSection = config.getConfigurationSection("defaultValues"); if (defaultValues != null) { defaultValues = new WorldConfig(plugin, defaultSection); + } else { + defaultValues = new WorldConfig(plugin); } }