If the ItemStack is null (so player has empty hand), this will cause a NPE.