Bug 829 - Program crashes when using invalid input format for “admin add”
Summary: Program crashes when using invalid input format for “admin add”
Status: CONFIRMED
Alias: None
Product: Hospital System
Classification: Unclassified
Component: Appointment System (show other bugs)
Version: beta release
Hardware: PC Windows
: High critical
Assignee: klhwong3-c
URL: N/A
Depends on:
Blocks:
 
Reported: 2023-12-10 00:03 HKT by hongjlee2-c
Modified: 2023-12-10 00:03 HKT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.