[trunk] Check for null in /sell

git-svn-id: https://svn.java.net/svn/essentials~svn/trunk@1310 e251c2fe-e539-e718-e476-b85c1f46cddb
This commit is contained in:
snowleo 2011-05-02 02:15:19 +00:00
parent 7efdb11d53
commit 87c937ff3c

View File

@ -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.");
}