From 8500542e934ce30f9bff8148340c001973ce46bb Mon Sep 17 00:00:00 2001 From: KHobbits Date: Sun, 29 Jan 2012 23:36:27 +0000 Subject: [PATCH] Remove invalid item spawn blacklist warning during startup. --- Essentials/src/com/earth2me/essentials/Settings.java | 4 ++++ 1 file changed, 4 insertions(+) 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 getItemSpawnBlacklist() { final List epItemSpwn = new ArrayList(); + 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();