[
https://issues.apache.org/jira/browse/CXF-7954?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Martin Cassidy updated CXF-7954:
--------------------------------
Description: On the client side, if 1 or more ReaderInterceptors are
registered, the ReaderInterceptorMBR will be appended to the ReaderInterceptor
list on org.apache.cxf.jaxrs.provider.ProviderFactory line 373, when it does
so, it passes m.getExchange().getInMessage() in the constructor. If the
response was an error, then getInMessage() is null, as the inMessage is set to
null, and the inFaultMessage is set to the message instead. Consiquently, when
the ReaderInterceptorMBR gets called, it will throw a NullPointerException on
line 64, because m will be null. (was: On the client side, if 1 or more
ReaderInterceptors are registered, the ReaderInterceptorMBR will be appended to
the ReaderInterceptor list on org.apache.cxf.jaxrs.provider.ProviderFactory
line 373, when it does so, it passes m.getExchange().getInMessage() in the
constructor. If the response was an error, then getInMessage is null, as the
inMessage is set to false, and the inFaultMessage is set to the message
instead. Consiquently, when the ReaderInterceptorMBR gets called, it will throw
a NullPointerException on line 64, because m will be null.)
> ReaderInterceptorMBR throws NullPointerException for a fault message
> --------------------------------------------------------------------
>
> Key: CXF-7954
> URL: https://issues.apache.org/jira/browse/CXF-7954
> Project: CXF
> Issue Type: Bug
> Components: JAX-RS
> Affects Versions: 3.2.7
> Reporter: Martin Cassidy
> Priority: Major
>
> On the client side, if 1 or more ReaderInterceptors are registered, the
> ReaderInterceptorMBR will be appended to the ReaderInterceptor list on
> org.apache.cxf.jaxrs.provider.ProviderFactory line 373, when it does so, it
> passes m.getExchange().getInMessage() in the constructor. If the response was
> an error, then getInMessage() is null, as the inMessage is set to null, and
> the inFaultMessage is set to the message instead. Consiquently, when the
> ReaderInterceptorMBR gets called, it will throw a NullPointerException on
> line 64, because m will be null.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)