Added in catch to annoying null pointer when debugging inventory.