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

                 Key: CAMEL-747
                 URL: https://issues.apache.org/activemq/browse/CAMEL-747
             Project: Apache Camel
          Issue Type: Bug
          Components: camel-core
    Affects Versions: 1.4.0
            Reporter: Claus Ibsen
            Assignee: Claus Ibsen
             Fix For: 1.5.0


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

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to