Validating inventory slot before attempting to use that slot. bug 741