Program crashes when user modify the save data externally
The program does not handle the case where the save data saved by the user is in the wrong format. The user may accidentally type 2020-13-10 when trying to change the month to 12 (December), causing the app to crash.
Steps to recreate the bug
Add a patient
Exit the program
Edit the data file such that the date is in the wrong format
Restart the app
Expected
The program will skip the faulty data when parsing
Program crashes when user modify the save data externally
The program does not handle the case where the save data saved by the user is in the wrong format. The user may accidentally type
2020-13-10
when trying to change the month to12
(December), causing the app to crash.Steps to recreate the bug
Expected
The program will skip the faulty data when parsing
Actual