[
https://issues.apache.org/jira/browse/CAMEL-6822?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13800655#comment-13800655
]
Claus Ibsen commented on CAMEL-6822:
------------------------------------
Do you have the stacktrace when this error happens?
And if its possible to create an unit test that reproduces the issue and passes
with the fix, then that would be great
> camel-facebook - Error when calling endpoint with options from header and
> configuration bean
> --------------------------------------------------------------------------------------------
>
> Key: CAMEL-6822
> URL: https://issues.apache.org/jira/browse/CAMEL-6822
> Project: Camel
> Issue Type: Bug
> Components: camel-facebook
> Affects Versions: 2.12.1
> Reporter: Emilien
> Priority: Minor
> Fix For: 2.12.2, 2.13.0
>
> Attachments: camel.patch
>
>
> When the camel-facebook endpoint is called with a set of options from headers
> and configuration bean, an NPE is throwed.
> Here an example route :
> <bean id="facebook"
> class="org.apache.camel.component.facebook.config.FacebookConfiguration">
> <property name="oAuthAppId" value="**********"/>
> <property name="oAuthAppSecret" value="******************"/>
> </bean>
> <route id="consumeFacebookPage">
> <from uri="direct:consumeFacebookPage"/>
> <setHeader headerName="CamelFacebook.query">
> <simple>SELECT page_id FROM page WHERE name='Apache Camel'</simple>
> </setHeader>
>
> <to uri="facebook://executeFQL"/>
> </route>
--
This message was sent by Atlassian JIRA
(v6.1#6144)