We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 822bbbe + 4fad4af commit cd6866cCopy full SHA for cd6866c
src/main/java/net/sf/jsqlparser/expression/LongValue.java
@@ -34,8 +34,12 @@ public LongValue(final String value) {
34
if (val.charAt(0) == '+') {
35
val = val.substring(1);
36
}
37
- this.value = Long.parseLong(val);
38
- this.stringValue = val;
+ try {
+ this.value = Long.parseLong(val);
39
+ } catch (NumberFormatException e) {
40
+ throw new NumberFormatException("Passed value does not contain a parsable long value");
41
+ }
42
+ this.stringValue = val;
43
44
45
public LongValue(long value) {
0 commit comments