Running the command
/give [Playername] [Invalid ID]
will crash the game and throw a java exception instead of displaying
There is no such item with ID [ID]
Linked issues
Comments 2
Duplicate of MC-32880 - If you have not, please use the search function in the future, to see if your bug has already been submitted. If you could not find the original report, please comment with the keywords you searched for.
Sorry about the links, I put them there on accident