Bug 831

Summary: Program crashes when checking sick history after AE treatment.
Product: Hospital System Reporter: hongjlee2-c
Component: AE 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: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.