nus-cs2103-AY2324S2 / pe-dev-response

0 stars 0 forks source link

Removing fields from JSON file causes app to be unable to start #3712

Open nus-se-script opened 5 months ago

nus-se-script commented 5 months ago

Description

Removing techStackName field from data/addressbook.json causes app to not launch, no error message displayed if user opens it by double-clicking.

Steps to Reproduce

  1. Remove techStackName field from data/addressbook.json from a person with a tech stack.
  2. Launch app

Expected

Application starts out with an empty contact book and optional message indicating corrupted address book.

Actual

image.png

Note

-


[original: nus-cs2103-AY2324S2/pe-interim#3107] [original labels: type.FunctionalityBug severity.Medium]

tanguoyang commented 5 months ago

Team's Response

Hey there! thanks for bringing this up. The team had a discussion before and we decided it was impractical to try and account for all cases of data corruption or tampering of data - it simply wouldnt be relevant for most of our users.

Duplicate status (if any):

--