You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
java.lang.NullPointerException: Cannot invoke "String.length()" because "str" is null
at java.base/java.lang.AbstractStringBuilder.<init>(AbstractStringBuilder.java:105) ~[na:na]
at java.base/java.lang.StringBuilder.<init>(StringBuilder.java:131) ~[na:na]
at com.mifmif.common.regex.Generex.requote(Generex.java:417) ~[generex-1.0.2.jar:1.0.2]
at com.mifmif.common.regex.Generex.<init>(Generex.java:84) ~[generex-1.0.2.jar:1.0.2]
at com.mifmif.common.regex.Generex.<init>(Generex.java:76) ~[generex-1.0.2.jar:1.0.2]
at com.github.javafaker.service.FakeValuesService.regexify(FakeValuesService.java:252) ~[javafaker-1.0.2.jar:na]
at com.github.javafaker.Faker.regexify(Faker.java:310) ~[javafaker-1.0.2.jar:na]
at com.github.javafaker.Finance.iban(Finance.java:64) ~[javafaker-1.0.2.jar:na]
My suggestion would be to make Finance.countryCodeToBasicBankAccountNumberPattern public or add a method to access it's keys so they can be used for random selection of a country scope.
manosbatsis
added a commit
to manosbatsis/java-faker
that referenced
this issue
Oct 27, 2023
Trying to get an IBAN using a country code provided by Faker itself results to a null pointer, e.g.
faker.finance().iban(faker.country().countryCode2())
Gives:
Versions:
The text was updated successfully, but these errors were encountered: