Hi I logged a ticket https://issues.apache.org/jira/browse/CAMEL-11413
On Wed, May 31, 2017 at 8:57 AM, Claus Ibsen <[email protected]> wrote: > Hi > > You are welcome to log a JIRA and provide a fix via github PR or a .patch > file. > http://camel.apache.org/support.html > https://github.com/apache/camel/blob/master/CONTRIBUTING.md > > > On Tue, May 30, 2017 at 11:41 PM, sarhaynes <[email protected]> wrote: >> I seem to have run into a case where the SAP Netweaver Gateway system that I >> am communicating with sending back data in a format that causes a >> NullPointerException in >> org.apache.camel.component.olingo2.api.impl.AbstractFutureCallback on line >> 54 of 2.17.x. >> It is possible that we could get an error back that does not have the >> CONTENT_TYPE header value set causing this line to generate a >> NullPointerException. I am getting either a 401 or 406 response, but am >> unable to determine for sure. >> >> Here is the code: >> final ContentType responseContentType = >> ContentType.parse( >> >> response.getFirstHeader(HttpHeaders.CONTENT_TYPE).getValue()); >> >> I am assuming getFirstHeader is returning 'null' in my case... >> >> I have checked and this issue is present in the current master as well. >> >> >> >> -- >> View this message in context: >> http://camel.465427.n5.nabble.com/Bug-in-camel-olingo2-api-tp5801396.html >> Sent from the Camel Development mailing list archive at Nabble.com. > > > > -- > Claus Ibsen > ----------------- > http://davsclaus.com @davsclaus > Camel in Action 2: https://www.manning.com/ibsen2 -- Claus Ibsen ----------------- http://davsclaus.com @davsclaus Camel in Action 2: https://www.manning.com/ibsen2
