mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-07-31 09:52:57 +00: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
1 changed files with 1 additions and 1 deletions
|
@ -32,7 +32,7 @@ public class Commandsell extends EssentialsCommand
|
||||||
{
|
{
|
||||||
is = ItemDb.get(args[0]);
|
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.");
|
throw new Exception("You really tried to sell Air? Put an item in your hand.");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue