adhy-p / pe

A repository generated automatically using CATcher for NUS CS2113T
0 stars 0 forks source link

[Bug] Program crashes when user modify the save data externally #1

Open adhy-p opened 3 years ago

adhy-p commented 3 years ago

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

  1. Add a patient
  2. Exit the program
  3. Edit the data file such that the date is in the wrong format
  4. Restart the app

Expected

The program will skip the faulty data when parsing

Actual

image.png

nus-pe-bot commented 3 years ago

Your response not required for this bug as the team has accepted the bug as it is.