Open RobotWizzard opened 4 hours ago
This bug is caused by customerList
being stored as a String
, and not being extracted correctly on app launch.
The main issue is in the convertStringToCustomerArrayList(String)
method in RentalUtil
. The "["
and "]"
is being interpreted as part of the first and last customers' names, so if any operations involving that client's list of rental information is executed, the app will save the new names, which are "[Steven"
and "David]"
for example.
The
customerList
field of rental information is saved with extra enclosing square brackets on app exit is therview
command is run on the client. This causes the UI to incorrectly display the customer list.State of
data/addressbook.json
Before exiting:
After running
rview 1
then exiting: