You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Stephan Siano (Jira)" <ji...@apache.org> on 2019/10/11 12:24:00 UTC

[jira] [Created] (CAMEL-14058) NullPointerException for failed One-Way requests with HTTP session handling

Stephan Siano created CAMEL-14058:
-------------------------------------

             Summary: NullPointerException for failed One-Way requests with HTTP session handling
                 Key: CAMEL-14058
                 URL: https://issues.apache.org/jira/browse/CAMEL-14058
             Project: Camel
          Issue Type: Bug
          Components: camel-cxf
    Affects Versions: 2.24.2
            Reporter: Stephan Siano
            Assignee: Stephan Siano


In some cases there is no inMessage in the cxf exchange in case of an error. If HTTP session handling is enabled (cookies), this will result in a NullPointerException.

The fix for this is rather trivial; a null check has to be done before accessing the inMessage.

This usually happens for one-way messages where HTTP session handling does not make much sense (because without a response there are no cookies), but nevertheless there should be no NullPointerException



--
This message was sent by Atlassian Jira
(v8.3.4#803005)