nus-cs2113-AY2324S2 / pe-dev-response

0 stars 0 forks source link

Adding additional column to data.txt crashes application #617

Open nus-pe-bot opened 5 months ago

nus-pe-bot commented 5 months ago

Description: When a user adds a " | " to the end of a meal (assuming exercise as well), the application crashes on startup.

Steps to Reproduce:

  1. Open data.txt in the data folder
  2. Add a pipe | to the end of a Meal or Exercise log followed by a string: | hello
  3. Run the jar file

Actual Result: The application crashes with a NumberFormatException for the input string "servings" or "mins" depending if its a meal or exercise.

Screenshot:

image.png

image.png


[original: nus-cs2113-AY2324S2/pe-interim#705] [original labels: type.FunctionalityBug severity.High]

nikhil-2101 commented 5 months ago

Team's Response

No details provided by team.

Duplicate status (if any):

--