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.