Skip to content

Data does not delete itself if corrupted #7

Description

@Ditzchann

According to the developer's guide, corrupted data will lead to the following:
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."

However, the new address book does not seem to be created. As reloading the application again still provides the same error.

Steps to reproduce:
1)
image.png
Edit addressbook.json to have invalid values.

  1. Open the application

  2. Close the application after the loading is done

image.png

  1. Reopen the application
    There should still be the same error message in the console stating that the data is corrupted.

image.png

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions