I had just re downloaded Minecraft to get rid of the random files all my mods had created, and this happened.
Attached is the crash log.
Related issues
Attachments
Comments

[media]

Apparently I need a .minecraft\assets\indexes\legacy.json file