Bug 517 - login string check
Summary: login string check
Status: RESOLVED FIXED
Alias: None
Product: Group 20 Travel Booking System
Classification: Unclassified
Component: App (show other bugs)
Version: unspecified
Hardware: PC Windows
: --- enhancement
Assignee: manttsang3-c
URL:
Depends on:
Blocks:
 
Reported: 2020-12-05 22:30 HKT by kctung6-c
Modified: 2020-12-05 23:30 HKT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description kctung6-c 2020-12-05 22:30:25 HKT
When I type others string, other than 1, 2, 3 in the main menu, the following exception is shown:

Login string check:

java.lang.NumberFormatException: For input string: "test"
	at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
	at java.lang.Integer.parseInt(Integer.java:580)
	at java.lang.Integer.parseInt(Integer.java:615)
	at com.grouptwenty.travelbooking.App.loginOrRegister(App.java:176)
	at com.grouptwenty.travelbooking.App.start(App.java:129)
	at com.grouptwenty.travelbooking.Main.main(Main.java:6)
Comment 1 manttsang3-c 2020-12-05 23:30:05 HKT
Bug fixed.

The bug occurs because of the lack of checking.