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

xpath expression with $header and the header doesnt exist on the in message results in NPE

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.4.0
    • 1.5.0
    • camel-core
    • None

    Description

      Using the $headerkey shorthand for xpath expression throws a NPE if the headerkey doesn't exists on the in message.

      We should try to find a better workaround for key doesn't exists. The NPE is thrown by SUN in their xpath engine.

      Check nabble:
      http://www.nabble.com/Camel-XPath-and-no-variables-found-in-MessageVariableResolver---What-should-Camel-do--td18603960s22882.html

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: