[
https://issues.apache.org/jira/browse/CAMEL-4756?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Willem Jiang resolved CAMEL-4756.
---------------------------------
Resolution: Fixed
Applied patch into trunk and camel-2.8.x branch.
> camel-test will through NPE when setting the system property of
> skipStartingCamelContext to be true
> ---------------------------------------------------------------------------------------------------
>
> Key: CAMEL-4756
> URL: https://issues.apache.org/jira/browse/CAMEL-4756
> Project: Camel
> Issue Type: Bug
> Components: camel-test
> Affects Versions: 2.8.2, 2.8.3
> Reporter: Willem Jiang
> Assignee: Willem Jiang
> Fix For: 2.8.4, 2.9.0
>
>
> We will get a NPE error when setting skipStartingCamelContext system property
> to be true.
> {code}
> java.lang.NullPointerException
> at
> org.apache.camel.spring.SpringCamelContext.springCamelContext(SpringCamelContext.java:75)
> at
> org.apache.camel.test.junit4.CamelSpringTestSupport.createCamelContext(CamelSpringTestSupport.java:180)
> at
> org.apache.camel.test.junit4.CamelTestSupport.doSetUp(CamelTestSupport.java:197)
> at
> org.apache.camel.test.junit4.CamelTestSupport.setUp(CamelTestSupport.java:167)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> {code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira