summaryrefslogtreecommitdiffstats
path: root/Essentials/src/com/earth2me/essentials/Kit.java
diff options
context:
space:
mode:
Diffstat (limited to 'Essentials/src/com/earth2me/essentials/Kit.java')
-rw-r--r--Essentials/src/com/earth2me/essentials/Kit.java8
1 files changed, 6 insertions, 2 deletions
diff --git a/Essentials/src/com/earth2me/essentials/Kit.java b/Essentials/src/com/earth2me/essentials/Kit.java
index 88816368c..138a12979 100644
--- a/Essentials/src/com/earth2me/essentials/Kit.java
+++ b/Essentials/src/com/earth2me/essentials/Kit.java
@@ -60,11 +60,15 @@ public class Kit
}
}
- public static List<String> getItems(final User user, final Map<String, Object> els) throws Exception
+ public static List<String> getItems(final User user, final Map<String, Object> kit) throws Exception
{
+ if (kit == null) {
+ throw new Exception(_("kitError2"));
+ }
+
try
{
- return (List<String>)els.get("items");
+ return (List<String>)kit.get("items");
}
catch (Exception e)
{