Bug 788

Summary: NumberFormatException
Product: Gear and Member Management System for library Reporter: keithlam5
Component: JavaAssignee: keithlam5
Status: RESOLVED FIXED    
Severity: enhancement CC: keithlam5
Priority: ---    
Version: unspecified   
Hardware: PC   
OS: Windows   
Attachments: Bug_2

Description keithlam5 2023-11-27 16:42:52 HKT
Created attachment 152 [details]
Bug_2

Steps To Reproduce:

1. request 001 E1 17-Jan-2022 five


Actual Results: java.lang.NumberFormatException: For input string: "five"
	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 code.CmdRequest.execute(CmdRequest.java:21)
	at Main.main(Main.java:53)

Expected Results: A warning of wrong number format
Comment 1 keithlam5 2023-11-27 17:04:16 HKT
In the CmdRequest.java, added catch for NumberFormatException