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

Empty urls.txt makes createScmRepos method fail #7

Open
Janhout opened this issue May 16, 2017 · 0 comments · May be fixed by #8
Open

Empty urls.txt makes createScmRepos method fail #7

Janhout opened this issue May 16, 2017 · 0 comments · May be fixed by #8

Comments

@Janhout
Copy link

Janhout commented May 16, 2017

When "repoList = (com.executeCommand(command1).split("\r?\n"));" is executed with empty "workspace + cartHome + '/src/urls.txt'" file, you will get an Array with length == 1. Then the following sentence is executed one time and it fails because 'repo' is an empty String and repo.indexOf("anything") returns -1

String repoName = repo.substring(repo.lastIndexOf("/") + 1, repo.indexOf(".git"));

@Janhout Janhout linked a pull request May 16, 2017 that will close this issue
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

Successfully merging a pull request may close this issue.

1 participant