Bug 831 - Program crashes when checking sick history after AE treatment.
Summary: Program crashes when checking sick history after AE treatment.
Status: CONFIRMED
Alias: None
Product: Hospital System
Classification: Unclassified
Component: AE 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:56 HKT by hongjlee2-c
Modified: 2023-12-10 00:56 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:56:57 HKT
Step To Reproduce:
1. Login.
2. Enter the AE system using the command “2”
3. Input any illness to get the ticket. (e.g. “headache”)
4. Input “3” to check the sick history

Actual Results:
The program crashes without printing out the sick history

Expected Results:
The program should print out the sick history.

Suggested Fix:
Check whether the addTicket() method in AE.java assigns the ticket to the user properly. Also, handle the case where the patient without any ticket uses “3. check the sick history”. The program should not crash in any case from “3”. check the sick history” function.