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

vespa-http-client-jar-with-dependencies.jar null pointer exception #12256

Closed
dodysw2 opened this issue Feb 19, 2020 · 2 comments
Closed

vespa-http-client-jar-with-dependencies.jar null pointer exception #12256

dodysw2 opened this issue Feb 19, 2020 · 2 comments
Assignees
Milestone

Comments

@dodysw2
Copy link

dodysw2 commented Feb 19, 2020

When reading from stdin, with --verbose param, the client throws exception:

Exception in thread "main" java.lang.NullPointerException
        at java.base/java.io.File.<init>(File.java:278)
        at com.yahoo.vespa.http.client.runner.Runner.main(Runner.java:89)

It seems, there should be null check on commandLineArgs.getFile()

double fileSizeMb = ((double) new File(commandLineArgs.getFile()).length()) / 1024.0 / 1024.0;

@jobergum
Copy link
Member

Thank you for the detailed report, we will fix this.

@olaaun
Copy link
Member

olaaun commented Feb 20, 2020

Thanks for pointing this out @dodysw2. A fix has been merged and will be available in a release with version >= 7.181.5

@olaaun olaaun closed this as completed Feb 20, 2020
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

4 participants