1
0
mirror of https://github.com/essentials/Essentials.git synced 2025-08-11 09:05:01 +02: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:
snowleo
2011-04-16 15:21:17 +00:00
parent aed820a246
commit 47f0c903cb

View File

@@ -47,6 +47,9 @@ public class Commandsell extends EssentialsCommand
int max = 0;
for (ItemStack s : user.getInventory().getContents())
{
if (s == null) {
continue;
}
if (s.getTypeId() != is.getTypeId()) {
continue;
}