Skip to content

Commit

Permalink
Fix bug for Parser.java
Browse files Browse the repository at this point in the history
  • Loading branch information
yentheng0110 committed Oct 9, 2024
1 parent 5c78357 commit afb1b73
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions data/tasks.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,4 @@ E | 0 | project meeting | Aug 6th 2pm-4pm
T | 0 | lecture
D | 0 | iP | Oct 11
E | 0 | lecture | 4pm-6pm
T | 0 | yt
2 changes: 1 addition & 1 deletion src/main/java/bob/ui/Parser.java
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public static Command parse(String fullCommand) {
default:
UI.printInvalidCommand();
}
} catch (NumberFormatException e) {
} catch (NumberFormatException | ArrayIndexOutOfBoundsException e) {
UI.printInvalidInputTypeMessage();
}
return null;
Expand Down

0 comments on commit afb1b73

Please sign in to comment.