Skip to content
This repository has been archived by the owner on Jul 5, 2021. It is now read-only.

v0.1.1 launching with --help flag crashes with "region can not be NULL" error #79

Open
bazzilic opened this issue May 20, 2021 · 2 comments

Comments

@bazzilic
Copy link

Just downloaded from Releases page and tried to take a look at the help output, but it crashes.

bazzilic@X1CARBON $ java -jar .\glacieruploader-impl-0.1.1-jar-with-dependencies.jar -h
ERROR Region is not configured.
Exception in thread "main" java.lang.NullPointerException: region can not be NULL
        at org.apache.commons.lang3.Validate.notNull(Validate.java:225)
        at de.kopis.glacier.GlacierUploader.findAndExecCommand(GlacierUploader.java:117)
        at de.kopis.glacier.GlacierUploader.main(GlacierUploader.java:94)

bazzilic@X1CARBON $ java -jar .\glacieruploader-impl-0.1.1-jar-with-dependencies.jar --help
ERROR Region is not configured.
Exception in thread "main" java.lang.NullPointerException: region can not be NULL
        at org.apache.commons.lang3.Validate.notNull(Validate.java:225)
        at de.kopis.glacier.GlacierUploader.findAndExecCommand(GlacierUploader.java:117)
        at de.kopis.glacier.GlacierUploader.main(GlacierUploader.java:94)

bazzilic@X1CARBON $ java -jar .\glacieruploader-impl-0.1.1-jar-with-dependencies.jar -?
ERROR Region is not configured.
Exception in thread "main" java.lang.NullPointerException: region can not be NULL
        at org.apache.commons.lang3.Validate.notNull(Validate.java:225)
        at de.kopis.glacier.GlacierUploader.findAndExecCommand(GlacierUploader.java:117)
        at de.kopis.glacier.GlacierUploader.main(GlacierUploader.java:94)
@mrensan
Copy link

mrensan commented Jun 23, 2021

Hi
Based on the documentation, you can add --region us-east-1 to your commands or add it permanently to your config file: .glacieruploaderrc

@bazzilic
Copy link
Author

Yeah, I figured as much, but this is clearly a bug by any definition, so probably should be fixed.

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

No branches or pull requests

2 participants