diff --git a/src/main/java/com/gmail/nossr50/config/ConfigLoader.java b/src/main/java/com/gmail/nossr50/config/ConfigLoader.java index f5d18a530..6d1620e63 100644 --- a/src/main/java/com/gmail/nossr50/config/ConfigLoader.java +++ b/src/main/java/com/gmail/nossr50/config/ConfigLoader.java @@ -46,7 +46,13 @@ public abstract class ConfigLoader { } config = YamlConfiguration.loadConfiguration(configFile); - FileConfiguration internalConfig = YamlConfiguration.loadConfiguration(plugin.getResource(fileName)); + InputStream resource = plugin.getResource(fileName); + + if (resource == null) { + return; + } + + FileConfiguration internalConfig = YamlConfiguration.loadConfiguration(resource); Set configKeys = config.getKeys(true); Set internalConfigKeys = internalConfig.getKeys(true);