From 47f0c903cb19dc5c562ecc26ef2c67b3d3343a1d Mon Sep 17 00:00:00 2001 From: snowleo Date: Sat, 16 Apr 2011 15:21:17 +0000 Subject: [PATCH] [trunk] NPE in /sell git-svn-id: https://svn.java.net/svn/essentials~svn/trunk@1223 e251c2fe-e539-e718-e476-b85c1f46cddb --- .../src/com/earth2me/essentials/commands/Commandsell.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandsell.java b/Essentials/src/com/earth2me/essentials/commands/Commandsell.java index faf8e945f..d651c882f 100644 --- a/Essentials/src/com/earth2me/essentials/commands/Commandsell.java +++ b/Essentials/src/com/earth2me/essentials/commands/Commandsell.java @@ -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; }