Open nus-pe-bot opened 4 years ago
If you mess with any other data of the JSON file, then the appropriate exception is thrown. However, messing with the index and not any other aspects of the JSON file is a very specific exception that is unlikely to happen in the real world unless done with the undetstanding of how JSON files work and how they can be messed with. I have labelled the bug as a "flaw that is unlikely to affect normal operations of the product. Appears only in very rare situations" and hence with low priority.
It is a great catch nontheless.
--
When editing the json files directly, inputting a invalid index crashes.
(After further testings, not only the index, but the fields of the json as well. For example "title", "text" etc.)
Steps to reproduce.
See below for more information.
[original: nus-cs2113-AY1920S2/pe-interim#282]