Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
3.7
-
None
Description
Test case:
NumberUtils.createNumber("L")
Expected: NumberFormatException
Got:
java.lang.StringIndexOutOfBoundsException: String index out of range: 0 at java.lang.String.charAt(String.java:658) at org.apache.commons.lang3.math.NumberUtils.createNumber(NumberUtils.java:528)