| Summary: | Array Index out of Bounds | ||
|---|---|---|---|
| Product: | Group 15 | Reporter: | YIP Chun Ho <aidanyip2-c> |
| Component: | Coronavirus Tracker | Assignee: | YIP Chun Ho <aidanyip2-c> |
| Status: | CONFIRMED --- | ||
| Severity: | enhancement | CC: | aidanyip2-c, ckchan599-c |
| Priority: | Normal | ||
| Version: | 1.0 | ||
| Hardware: | PC | ||
| OS: | Windows | ||
|
Description
YIP Chun Ho
2020-11-27 03:54:26 HKT
1. Input "c" to create patient 2. Press enter again within input any patient info 3. Exception throws java.lang.StringIndexOutOfBoundsException: String index out of range: 0 Enter patientID, patientName, gender, status and a list of location visited: at java.base/java.lang.StringLatin1.charAt(StringLatin1.java:48) at java.base/java.lang.String.charAt(String.java:711) at infectionTracker.Command.CreatePatientCommand.execute(CreatePatientCommand.java:45) at infectionTracker.Main.main(Main.java:39) |