Sorry for the unscheduled update, but thanks to @Lauchulus for reporting the bug associated with the null exception. It happens when the player is not looking at a chest. Furthermore, it wouldn't show the message that you are not looking at a chest so this update fixes this bug.