nabokov/glacier-targz-uploader — pull request #1 by phretor (2013-02-02 12:57:50+00:00)
Title: Solved java.lang.StringIndexOutOfBoundsException bug

Was failing if the vault name was less than 10 chars

% java -Xmx1G -Dfile.encoding=UTF-8 -jar listVaultInventory.jar -region "eu-west-1" -vault "documents"
Exception in thread "main" java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader.main(JarRsrcLoader.java:58)
Caused by: java.lang.StringIndexOutOfBoundsException: String index out of range: 10
at java.lang.String.substring(String.java:1907)
at glacierHelper.VaultInventory.(VaultInventory.java:75)
at cmdline.ListVaultInventory.main(ListVaultInventory.java:32)
... 5 more