Skip to content

Program crashes when viewing an out of bounds medication #4

Description

@Haotian199

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)

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions