AY2223S2-CS2113-W15-4 / tp

https://ay2223s2-cs2113-w15-4.github.io/tp/
0 stars 5 forks source link

[PE-D][Tester C] [Functionality] `add_dish` with large integers crashes the application #135

Closed nus-se-script closed 1 year ago

nus-se-script commented 1 year ago

When an extremely large non-negative integer value like 9999999999999999999999999999999999 is passed to the add_dish command as the price in cents, the app crashes with a NumberFormatException, as demonstrated below:

image.png

However, in the UserGuide, it is stated that non-negative integer values are supported, as shown below:

image.png

Hence, a parameter like 9999999999999999999999999999999999 should be caught by the application rather than resulting in a crash. Since the application crashes, which prevents the user from continuing to use the application, the severity of this bug is High.


Labels: severity.High type.FunctionalityBug original: haoyangw/ped#8

Zeno-Zr commented 1 year ago

Bug Fixes for Dish 68cceee0b4aadb197997405eca9db0ca0442dfa3