summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Essentials/src/com/earth2me/essentials/Settings.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/Essentials/src/com/earth2me/essentials/Settings.java b/Essentials/src/com/earth2me/essentials/Settings.java
index e50e9c16f..6b81753b6 100644
--- a/Essentials/src/com/earth2me/essentials/Settings.java
+++ b/Essentials/src/com/earth2me/essentials/Settings.java
@@ -374,6 +374,10 @@ public class Settings implements ISettings
private List<Integer> getItemSpawnBlacklist()
{
final List<Integer> epItemSpwn = new ArrayList<Integer>();
+ if (ess.getItemDb() == null) {
+ logger.log(Level.FINE, "Aborting ItemSpawnBL read, itemDB not yet loaded.");
+ return epItemSpwn;
+ }
for (String itemName : config.getString("item-spawn-blacklist", "").split(","))
{
itemName = itemName.trim();