Bug 829

Summary: Program crashes when using invalid input format for “admin add”
Product: Hospital System Reporter: hongjlee2-c
Component: Appointment SystemAssignee: klhwong3-c
Status: CONFIRMED ---    
Severity: critical    
Priority: High    
Version: beta release   
Hardware: PC   
OS: Windows   
URL: N/A

Description hongjlee2-c 2023-12-10 00:03:28 HKT
Step To Reproduce:
1. Start program.
2. Use “admin add testingDoc
”
Actual Results:
The program prints out “Added Doctor to System” and crashes with an exception.

Expected Results:
The program should notify to use valid input, which is  “admin add [username]:[password]”.

Suggested Fix:
We should handle the case where an invalid input format is used for admin commands. Print out "Invalid Input Format" without terminating the program.