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

Unclear error message (StringIndexOutOfBoundsException) when passing empty argument to --driver #114

Closed
arotenberg-google opened this issue Oct 14, 2022 · 2 comments
Assignees

Comments

@arotenberg-google
Copy link
Collaborator

arotenberg-google commented Oct 14, 2022

Calling the dumper with --driver "" (e.g. due to a bad environment variable on the command line) throws an exception like:

Exception in thread "main" java.lang.StringIndexOutOfBoundsException: String index out of range: 0
    at java.base/java.lang.StringLatin1.charAt(StringLatin1.java:47)
    at java.base/java.lang.String.charAt(String.java:693)
    at com.google.edwmigration.dumper.application.dumper.JsonResponseFile.addResponseFiles(JsonResponseFile.java:61)
    at com.google.edwmigration.dumper.application.dumper.MetadataDumper.main(MetadataDumper.java:319)

This error message is unclear what the problem is, making it hard for the user to debug.

@vladislav-sidorovich
Copy link
Collaborator

Currently error message is different, but the main idea of the issue is still valid.

@vladislav-sidorovich vladislav-sidorovich self-assigned this Oct 14, 2024
@vladislav-sidorovich
Copy link
Collaborator

vladislav-sidorovich commented Oct 14, 2024

fixed at #579

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

2 participants