1
0
mirror of https://github.com/essentials/Essentials.git synced 2025-08-15 02:59:06 +02:00

[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 5918f6b879
commit 200284faf5

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