Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-6822

camel-facebook - Error when calling endpoint with options from header and configuration bean

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.12.1
    • 2.12.3, 2.13.0
    • camel-facebook
    • None
    • Patch Available
    • Unknown

    Description

      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>

      Attachments

        1. camel.patch
          2 kB
          Emilien

        Activity

          People

            davsclaus Claus Ibsen
            ebondu Emilien
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: