Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
2.10.4
-
None
-
Novice
Description
When calling a Camel application with parameter -h all parameters are printed an the program exits.
But it is no clean exit; it throws an java.lang.IndexOutOfBoundsException.
The reason for this is the expression in doStop():
+
getCamelContexts().get(0).stop();
get(0) returns null, if no context is initialized yet.
See camel-users mailinglist, thread "Bug in org.apache.camel.main.Main#doStop() ?"