Bug 833

Summary: NullPointerException during aeFFT when there is no ticket.
Product: Hospital System Reporter: hongjlee2-c
Component: AE SystemAssignee: klhwong3-c
Status: CONFIRMED ---    
Severity: critical    
Priority: High    
Version: Alpha Release   
Hardware: PC   
OS: Windows   
URL: N/A

Description hongjlee2-c 2023-12-10 01:09:27 HKT
Step To Reproduce:
1. Make sure to have at least one AE doctor for treatment. (You can add AE doctor using “admin aed [doctor_name]:[password]”)
2. Use “admin fft [yyyymmddhhmm]” until you don’t have any tickets left in the scheduling queue. (e.g. you can use “admin fft 203012311800”)

Actual Results:
The application crashes with a NullPointerException.

Expected Results:
aeFFT should end without any error when there is no ticket in the scheduling queue.

Suggested Fix:
Check whether there exists a ticket in the queue for each iteration of aeFFT and terminate the fft when there is no ticket to handle.