summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Essentials/src/com/earth2me/essentials/Settings.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/Essentials/src/com/earth2me/essentials/Settings.java b/Essentials/src/com/earth2me/essentials/Settings.java
index 3ff5d0d4a..d653ec86c 100644
--- a/Essentials/src/com/earth2me/essentials/Settings.java
+++ b/Essentials/src/com/earth2me/essentials/Settings.java
@@ -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