Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

email() method not working properly #111

Open
guilherme-lima opened this issue Oct 22, 2019 · 2 comments
Open

email() method not working properly #111

guilherme-lima opened this issue Oct 22, 2019 · 2 comments

Comments

@guilherme-lima
Copy link

Looking at class RandomGen, line 124 we have this method:

public static String email(Integer emailLength, String domain)

When its variable emailLength is less then 12, an IllegalArgumentException will be thrown at class RandomStringUtils, line 48:

public static String random(int count, int start, int end, boolean letters, boolean numbers, char[] chars, Random random)

else if (count < 0) throw new IllegalArgumentException("Requested random string length " + count + " is less than 0.");

The only way to avoid this error is using one of the other signatures where you can pass the emailLength, but it must be higher or equals 12.

@atif-github-venture
Copy link

Hi.. can I work on this solution, will you be accepting the PR in time?
Our team needs this for an academic project.

@pkatre2
Copy link

pkatre2 commented Oct 23, 2021

can you assign it to me , would like to contribute

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants