Steps to reproduce:
1. Enter crafting table GUI or survival inventory, place some items on crafting grid
2. Completely fill up your inventory while still in the GUI (for survival, be standing on dropped items)
3. Open recipe book, click on a recipe
Under normal circumstances, this would automatically clear the crafting grid to display the recipe you clicked on by returning items to your inventory. If there is nowhere for these items to go, the game will crash.
I would expect the items to be dropped, like when you close the GUI with a full inventory.
The following error is given. Crash log attached below.
GAME CRASH
The game crashed whilst updating screen events
Error: java.lang.ArrayIndexOutOfBoundsException: -1
Still occurs in 17w13b. The bug that this one is marked as a duplicate of has been fixed (it was caused in a different scenario by a different line of code), so requesting this one to be reopened, as it is not fixed.