[PE-D] Delete place doesn't work after loaded trip
Closed this issue · 1 comments
nus-pe-bot commented
After load a trip, I am not sure why i cannot delete the place.
_________________________________________________________________________
>> delete /p 1
_________________________________________________________________________
Sorry I can't find the place. Please enter a valid index.
_________________________________________________________________________
>> load trip
_________________________________________________________________________
Here are your existing trips.
1. 0 Days - NUS Lab
2. 4 Days - China
3. 3 Days - China 2
Which one do you want to load? Enter the index:delete /p 1
Exception in thread "main" java.lang.NumberFormatException: For input string: "delete /p 1"
at java.base/java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
at java.base/java.lang.Integer.parseInt(Integer.java:652)
at java.base/java.lang.Integer.parseInt(Integer.java:770)
at seedu.trippie.command.LoadTripCommand.execute(LoadTripCommand.java:19)
at seedu.trippie.Trippie.executeCommand(Trippie.java:74)
at seedu.trippie.Trippie.run(Trippie.java:49)
at seedu.trippie.Trippie.main(Trippie.java:23)
Labels: severity.High
type.FeatureFlaw
original: t170815518/ped#3
ShawnTanzc commented
Fix in V2.0