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.