Details
-
Type:
Bug
-
Status: Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 2.14.3, 2.15.2
-
Component/s: camel-facebook
-
Labels:None
-
Estimated Complexity:Unknown
Description
Endpoint URI must contain a parametr otherwise method FacebookEndpoint#initState will not be called. This results in the following exception:
Caused by: java.lang.NullPointerException at java.util.Collections$UnmodifiableCollection.<init>(Collections.java:1026)[:1.8.0_45] at java.util.Collections$UnmodifiableList.<init>(Collections.java:1302)[:1.8.0_45] at java.util.Collections.unmodifiableList(Collections.java:1287)[:1.8.0_45] at org.apache.camel.component.facebook.FacebookEndpoint.getCandidates(FacebookEndpoint.java:186)
This behaviour is not correct because it is not possible easily change endpoint parameter values.
We should support the following usecase:
header: CamelFacebook.userId = xxxxx
<to uri="facebook://user"/>
and not only:
<to uri="facebook://user?userId=xxxxx"/>