AY2324S2-CS2113T-T09-1 / tp

0 stars 6 forks source link

[PE-D][Tester A] Program crashes when viewing an out of bounds medication #175

Closed nus-se-bot closed 7 months ago

nus-se-bot commented 7 months ago

image.png

image.png

The current list has a size of 6 items. When trying to enquire about the details of the medication in position 10, which is out of bounds, the program crashes and exits. It would be good to throw an exception when the index is out of bounds (in this case, catching the IndexOutOfBoundsException)


Labels: type.FunctionalityBug severity.High original: Haotian199/ped#4