Bukkit/CraftBukkit — pull request #755 by Scyntrus (2012-04-20 01:52:10+00:00)
Title: NullPointerException with Inventory.getContents()

Currently, using setContents with a list (like the one you get from getContents) containing null objects causes a NullPointerException. I believe this will solve it.