Bukkit/CraftBukkit — comment on commit 5a6c5ed2334cd30fafa510b1e94243b1cfb55ca8
File:  line 0
By craftycreeper:

Something in this or the commits before (relating to ItemStack) has broken WorldGuard. The relevant bit of WorldGuard that is having problems, is:
```int slot = player.getInventory().getHeldItemSlot();
ItemStack heldItem = player.getInventory().getItem(slot);
if (heldItem.getAmount() < 0) {
player.getInventory().setItem(slot, null);
player.sendMessage(ChatColor.RED + "Infinite stack removed.");
}```

It is throwing an NPE there when it calls getAmount(). Is this something WG will need to update or is it a problem in Bukkit?