mirror of
https://github.com/essentials/Essentials.git
synced 2025-08-17 20:11:21 +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:
@@ -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.");
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user