fix NPE issue with CB inventory

This commit is contained in:
Tahg 2011-12-06 08:48:45 -05:00
parent 57112887ca
commit eead44a692

View File

@ -169,6 +169,8 @@ public class CraftInventory implements org.bukkit.inventory.Inventory {
}
ItemStack[] inventory = getContents();
for (int i = 0; i < inventory.length; i++) {
if (inventory[i] == null) continue;
boolean equals = false;
if (withAmount) {