java.lang.StringIndexOutOfBoundsException throws after input null as patient info
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)
*** Bug 489 has been marked as a duplicate of this bug. ***