Details
Description
If you invoke the client with the -r option, but forget to specify a value, the ArrayIndexOutOfBoundsException is thrown. For example:
./client -a 8101 -r
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 3
at org.apache.karaf.client.Main.main(Main.java:88)
This actually is applicable for other option also, should check if the option value is available and if not, print a more graceful log instead of the ArrayIndexOutOfBoundsException