Sven Bauhan created CAMEL-6504:
----------------------------------

             Summary: org.apache.camel.main.Main#doStop() throws 
java.lang.IndexOutOfBoundsException
                 Key: CAMEL-6504
                 URL: https://issues.apache.org/jira/browse/CAMEL-6504
             Project: Camel
          Issue Type: Bug
          Components: camel-core
    Affects Versions: 2.10.4
            Reporter: Sven Bauhan
            Priority: Minor


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() 
?"


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to