mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-02-11 20:00:46 +00:00
[trunk] NPE in /sell
git-svn-id: https://svn.java.net/svn/essentials~svn/trunk@1223 e251c2fe-e539-e718-e476-b85c1f46cddb
This commit is contained in:
parent
e58e73f1e5
commit
981f08405f
1 changed files with 3 additions and 0 deletions
|
@ -47,6 +47,9 @@ public class Commandsell extends EssentialsCommand
|
||||||
int max = 0;
|
int max = 0;
|
||||||
for (ItemStack s : user.getInventory().getContents())
|
for (ItemStack s : user.getInventory().getContents())
|
||||||
{
|
{
|
||||||
|
if (s == null) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
if (s.getTypeId() != is.getTypeId()) {
|
if (s.getTypeId() != is.getTypeId()) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue