If "sethome-multiple" config section is invalid, silently fallback to default config values.

This commit is contained in:
KHobbits 2014-06-17 00:19:59 +01:00
parent 7804516793
commit 1690b9d83d

View File

@ -51,7 +51,8 @@ public class Settings implements net.ess3.api.ISettings
@Override
public Set<String> getMultipleHomes()
{
return config.getConfigurationSection("sethome-multiple").getKeys(false);
final ConfigurationSection section = config.getConfigurationSection("sethome-multiple");
return section == null ? null : section.getKeys(false);
}
@Override