Skip to content

Corrupted save data treated as valid #6

Description

@Ditzchann

When editing addressbook.json directly, if the user wanted to move a booking from one person to another but failed to delete the original booking in the first person, the application will still launch normally without error.

image.png

Expected result: A DataLoadingException is thrown. An empty address book will be created. The following will
be logged as a warning: "Data file at " + storage.getAddressBookFilePath() + " could not be loaded." according to the developer's guide.

Actual result:

image.png
The booking appears under both persons entries but only one of it exists under the booking list. It is able to be filtered by both phone numbers attached to it.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions