[ 
https://issues.apache.org/jira/browse/CXF-7954?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16769514#comment-16769514
 ] 

Colm O hEigeartaigh commented on CXF-7954:
------------------------------------------

Do you have a test-case to reproduce this issue? It didn't hit 
ProviderFactory.createMessageBodyReaderInterceptor for me with a fault message.

> 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)

Reply via email to