Skip to content

Fixing issue where inputting an expiration date for water causes the app to crash.

A H requested to merge issue_221_water_expiration_crash into main

BRANCH NAME

issue_221_water_expiration_crash

RELATED ISSUES

Closes #221 (closed);

SUMMARY OF ISSUE/BUG

When you scan a bottle of water, after getting past SelectItemFragment and arriving at SelectPrintedExpirationDate, when you input an expiration date for the water and you hit accept, the app crashes.

DESCRIPTION OF UPDATE

The app was crashing when water was scanned because water has mostly null values for shelf lives, with the exception of a single "Indefinitely" entry. The code needed to be updated to check for this Indefinitely entry.

STEPS TO TEST

  1. Go to the 'Check Expiration Date' feature within the app.
  2. Scan or enter a barcode -> you will be taken to SelectItemFragment or ConfirmItemFragment
  3. Input Brand Name
  4. Input Description
  5. Select 'Beverages' as the "Category"
  6. Select 'Water' as the "Product"
  7. Select 'commercially bottled' as the "Type"
  8. Hit Accept -> you will be taken to SelectPrintedExpirationDateFragment
  9. Select a random date.
  10. Press 'Accept' -> you should be taken to DisplayTrueExpirationFragment

Confirm that upon arriving to DisplayTrueExpirationFragment that the app hasn't crashed.

NOTES

N/A

LABELS

NEST component:check-expiration-date type::bug status::doing

Edited by A H

Merge request reports