From 200284faf5a734947addbc8a1542635b0ac59c8c Mon Sep 17 00:00:00 2001 From: snowleo Date: Mon, 2 May 2011 02:15:19 +0000 Subject: [PATCH] [trunk] Check for null in /sell git-svn-id: https://svn.java.net/svn/essentials~svn/trunk@1310 e251c2fe-e539-e718-e476-b85c1f46cddb --- .../src/com/earth2me/essentials/commands/Commandsell.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandsell.java b/Essentials/src/com/earth2me/essentials/commands/Commandsell.java index f686b0d90..0d06fe4c8 100644 --- a/Essentials/src/com/earth2me/essentials/commands/Commandsell.java +++ b/Essentials/src/com/earth2me/essentials/commands/Commandsell.java @@ -32,7 +32,7 @@ public class Commandsell extends EssentialsCommand { is = ItemDb.get(args[0]); } - if (is.getType() == Material.AIR) + if (is == null || is.getType() == Material.AIR) { throw new Exception("You really tried to sell Air? Put an item in your hand."); }