mirror of
https://github.com/EssentialsX/Essentials.git
synced 2025-01-23 00:21:26 +01: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:
parent
7efdb11d53
commit
87c937ff3c
@ -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.");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user